Changeset 181
- Timestamp:
- 12/27/2013 10:24:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r177 r181 50 50 $("#modify").parent().removeClass('collapsed'); 51 51 52 // Push live comment previews above 'Modify Ticket' 53 $('#ticketchange').insertAfter('#trac-add-comment'); 54 55 // Allow 'Modify Ticket' to be shown even after a Trac preview tries to close it, 56 // but only if it was already open. 57 (function(){ 58 var action, hadClass, 59 form = $('#propertyform'), 60 modify = $('#modify').parent(); 61 if ( ! form.length ) { 62 return; 63 } 64 action = form.attr('action'); 65 $(document).ajaxSend( function( event, XMLHttpRequest, ajaxOptions ) { 66 if ( 0 !== action.indexOf( ajaxOptions.url ) ) { 67 return; 68 } 69 hadClass = modify.hasClass('collapsed'); 70 }); 71 $(document).ajaxComplete( function( event, XMLHttpRequest, ajaxOptions ) { 72 if ( hadClass || 0 !== action.indexOf( ajaxOptions.url ) ) { 73 return; 74 } 75 modify.removeClass('collapsed'); 76 }); 77 })(); 78 52 79 // Toggle the security notice on component change, if rendered 53 80 if ( $('#wp-security-notice').length ) {
Note: See TracChangeset
for help on using the changeset viewer.