| @@ -90,11 +90,9 @@ | ||
| 90 | 90 | |
| 91 | 91 | if ( ! ( 'WidgetGalleryEdit' in media.controller ) ) { |
| 92 | 92 | // Remove the gallery settings sidebar when editing widgets. |
| 93 | 93 | media.controller.WidgetGalleryEdit = media.controller.GalleryEdit.extend( { |
| 94 | - gallerySettings: function (/*browser*/) { | |
| 95 | - return; | |
| 96 | - }, | |
| 94 | + gallerySettings: function ( /*browser*/ ) {}, | |
| 97 | 95 | } ); |
| 98 | 96 | } |
| 99 | 97 | |
| 100 | 98 | this.states.add( [ |
| @@ -109,9 +107,9 @@ | ||
| 109 | 107 | }, |
| 110 | 108 | } ); |
| 111 | 109 | |
| 112 | 110 | function setupStyleOptions() { |
| 113 | - $( '.widget-inside .gallery-widget-style' ).each( function (/*i*/) { | |
| 111 | + $( '.widget-inside .gallery-widget-style' ).each( function ( /*i*/ ) { | |
| 114 | 112 | var style = $( this ).val(); |
| 115 | 113 | |
| 116 | 114 | var form = $( this ).parents( 'form' ); |
| 117 | 115 | |