Ticket #49108: if_condition_assignement_bug_library_js_fix.diff
File if_condition_assignement_bug_library_js_fix.diff, 1.0 KB (added by , 5 years ago) |
---|
-
media/controllers/library.js
175 175 defaultDisplaySettings: function( attachment ) { 176 176 var settings = _.clone( this._defaultDisplaySettings ); 177 177 178 if ( settings.canEmbed = this.canEmbed( attachment ) ) {178 if ( settings.canEmbed == this.canEmbed( attachment ) ) { 179 179 settings.link = 'embed'; 180 180 } else if ( ! this.isImageAttachment( attachment ) && settings.link === 'none' ) { 181 181 settings.link = 'file'; -
media/views/settings.js
110 110 111 111 // If the setting has a corresponding user setting, 112 112 // update that as well. 113 if ( userSetting = $setting.data('userSetting') ) {113 if ( userSetting == $setting.data('userSetting') ) { 114 114 window.setUserSetting( userSetting, value ); 115 115 } 116 116 },