Changeset 9654 for trunk/wp-includes/js/swfupload/handlers.js
- Timestamp:
- 11/13/2008 03:07:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/swfupload/handlers.js
r9465 r9654 248 248 } 249 249 } 250 251 // remember the last used image size, alignment and url 252 jQuery(document).ready(function($){ 253 var align = getUserSetting('align') || '', imgsize = getUserSetting('imgsize') || ''; 254 255 $('tr.align input[type="radio"]').click(function(){ 256 setUserSetting('align', $(this).val()); 257 }).filter(function(){ 258 if ( $(this).val() == align ) 259 return true; 260 return false; 261 }).attr('checked','checked'); 262 263 $('tr.image-size input[type="radio"]').click(function(){ 264 setUserSetting('imgsize', $(this).val()); 265 }).filter(function(){ 266 if ( $(this).attr('disabled') || $(this).val() != imgsize ) 267 return false; 268 return true; 269 }).attr('checked','checked'); 270 271 $('tr.url button').click(function(){ 272 var c = this.className || ''; 273 c = c.replace(/.*?(url[^ '"]+).*/, '$1'); 274 if (c) setUserSetting('urlbutton', c); 275 $(this).siblings('.urlfield').val( $(this).attr('title') ); 276 }); 277 278 $('tr.url .urlfield').each(function(){ 279 var b = getUserSetting('urlbutton'); 280 $(this).val( $(this).siblings('button.'+b).attr('title') ); 281 }); 282 });
Note: See TracChangeset
for help on using the changeset viewer.