equal
deleted
inserted
replaced
173 return false; |
173 return false; |
174 } |
174 } |
175 |
175 |
176 var innerBox = getElementsByClassName(box, 'div', 'mp-body')[0]; |
176 var innerBox = getElementsByClassName(box, 'div', 'mp-body')[0]; |
177 var whiteout = whiteOutElement(innerBox); |
177 var whiteout = whiteOutElement(innerBox); |
178 whiteout.style.width = ( $(whiteout).Width() - 78 ) + 'px'; |
178 whiteout.style.width = ( $dynano(whiteout).Width() - 78 ) + 'px'; |
179 whiteout.style.left = ( $(whiteout).Left() + 44 ) + 'px'; |
179 whiteout.style.left = ( $dynano(whiteout).Left() + 44 ) + 'px'; |
180 |
180 |
181 ajaxPost(stdAjaxPrefix + '&_mode=rename', 'newtitle=' + ajaxEscape(newname), function() |
181 ajaxPost(stdAjaxPrefix + '&_mode=rename', 'newtitle=' + ajaxEscape(newname), function() |
182 { |
182 { |
183 if ( ajax.readyState == 4 && ajax.status == 200 ) |
183 if ( ajax.readyState == 4 && ajax.status == 200 ) |
184 { |
184 { |
221 // IE <6 pseudo-compatibility |
221 // IE <6 pseudo-compatibility |
222 if ( KILL_SWITCH ) |
222 if ( KILL_SWITCH ) |
223 return true; |
223 return true; |
224 load_component('l10n'); |
224 load_component('l10n'); |
225 load_component('messagebox'); |
225 load_component('messagebox'); |
226 load_component('SpryEffects'); |
226 load_component('jquery'); |
|
227 load_component('jquery-ui'); |
227 |
228 |
228 // stage 1: prompt for reason and confirmation |
229 // stage 1: prompt for reason and confirmation |
229 miniPrompt(function(parent) |
230 miniPrompt(function(parent) |
230 { |
231 { |
231 // heading/title |
232 // heading/title |
353 var confirm = inputs[1]; |
354 var confirm = inputs[1]; |
354 |
355 |
355 if ( trim(reason.value) == '' ) |
356 if ( trim(reason.value) == '' ) |
356 { |
357 { |
357 // flash the background of the reason entry |
358 // flash the background of the reason entry |
358 if ( !reason.sfx ) |
359 $(reason.parentNode).effect("highlight", {}, 1000); |
359 reason.sfx = new Spry.Effect.Highlight(reason.parentNode); |
|
360 |
|
361 reason.sfx.start(); |
|
362 return false; |
360 return false; |
363 } |
361 } |
364 |
362 |
365 if ( !confirm.checked ) |
363 if ( !confirm.checked ) |
366 { |
364 { |
367 // flash the background of the confirm checkbox |
365 // flash the background of the confirm checkbox |
368 if ( !confirm.sfx ) |
366 $(confirm.parentNode).effect("highlight", {}, 1000); |
369 confirm.sfx = new Spry.Effect.Highlight(confirm.parentNode); |
|
370 |
|
371 confirm.sfx.start(); |
|
372 return false; |
367 return false; |
373 } |
368 } |
374 |
369 |
375 prompt_obj.innerHTML = '<img alt="loading" style="display: block; margin: 0 auto;" src="' + cdnPath + '/images/loading-big.gif" />'; |
370 prompt_obj.innerHTML = '<img alt="loading" style="display: block; margin: 0 auto;" src="' + cdnPath + '/images/loading-big.gif" />'; |
376 |
371 |