Revision 16e27b76 ui/templates/standard.html
b/ui/templates/standard.html | ||
---|---|---|
155 | 155 |
return false; |
156 | 156 |
}); |
157 | 157 |
|
158 |
// intercept create metadata focus |
|
159 |
$(".meta-modal input.key").live('focusin', function() { |
|
160 |
if ($(this).hasClass("input-enabled")) { |
|
161 |
} else { |
|
162 |
$(".meta-modal input.key").addClass("input-enabled"); |
|
163 |
$(this).addClass("input-enabled"); |
|
164 |
this.value = ''; |
|
165 |
} |
|
166 |
return false; |
|
167 |
}); |
|
168 |
|
|
169 |
// intercept create metadata focus |
|
170 |
$(".meta-modal input.key").live('focusout', function() { |
|
171 |
if (this.value == "") { |
|
172 |
$(this).removeClass("input-enabled"); |
|
173 |
this.value = 'max 15 characters'; |
|
174 |
} |
|
175 |
return false; |
|
176 |
}); |
|
177 |
|
|
158 | 178 |
$("div.confirm_single .yes").live('click', function(){ |
159 | 179 |
var serverID = $(this).parent().parent().attr("id"); |
160 | 180 |
for (i=0;i<pending_actions.length;i++){ // if there is a pending action for this server execute it |
Also available in: Unified diff