diff --git a/src/js/_enqueues/lib/image-edit.js b/src/js/_enqueues/lib/image-edit.js
index 18d3099f62..7ce5d242e9 100644
a
|
b
|
|
226 | 226 | */ |
227 | 227 | scaleChanged : function( postid, x, el ) { |
228 | 228 | var w = $('#imgedit-scale-width-' + postid), h = $('#imgedit-scale-height-' + postid), |
229 | | warn = $('#imgedit-scale-warn-' + postid), w1 = '', h1 = ''; |
| 229 | warn = $('#imgedit-scale-warn-' + postid), w1 = '', h1 = '', |
| 230 | scaleBtn = $('#imgedit-scale-button'); |
230 | 231 | |
231 | 232 | if ( false === this.validateNumeric( el ) ) { |
232 | 233 | return; |
… |
… |
|
242 | 243 | |
243 | 244 | if ( ( h1 && h1 > this.hold.oh ) || ( w1 && w1 > this.hold.ow ) ) { |
244 | 245 | warn.css('visibility', 'visible'); |
| 246 | scaleBtn.prop('disabled', true); |
245 | 247 | } else { |
246 | 248 | warn.css('visibility', 'hidden'); |
| 249 | scaleBtn.prop('disabled', false); |
247 | 250 | } |
248 | 251 | }, |
249 | 252 | |