|
102 | 102 | imgOrientationValue: [], |
103 | 103 |
|
104 | 104 | /** |
105 | | - * Subroutine from rotateRight() and rotateLeft() |
| 105 | + * Subroutine for rotateRight() and rotateLeft() |
106 | 106 | * |
107 | 107 | * @param int attach_id attach id from image |
108 | 108 | * @param int deg angle to rotated |
|
203 | 203 | '&creation_time=' + $('input[name="creation_time"]').val() + |
204 | 204 | '&form_token=' + $('input[name="form_token"]').val(); |
205 | 205 |
|
206 | | - let ajaxReq = $.ajax({ |
| 206 | + let ajaxReq = $.ajax({ |
207 | 207 | // The url of the request |
208 | 208 | url: url, |
209 | | - |
| 209 | + |
210 | 210 | // The data to send |
211 | 211 | data: requestData, |
212 | 212 |
|
|
222 | 222 | // Code to run before the request is send |
223 | 223 | beforeSend: function(xhr, settings) { |
224 | 224 | $(button).find('>:first-child').attr('class', 'icon fa-refresh fa-spin fa-fw'); |
225 | | - $('.imcger-iupl-button button').attr('disabled', true).css('cursor','not-allowed'); |
| 225 | + $('.imcger-iupl-button button').prop('disabled', true).css('cursor','not-allowed'); |
226 | 226 | }, |
227 | 227 | }); |
228 | 228 |
|
|
247 | 247 | // Code to run regardless of success or failure; |
248 | 248 | ajaxReq.always(function(xhr, status) { |
249 | 249 | $(button).find('>:first-child').attr('class', 'icon fa-save fa-fw'); |
250 | | - $('.imcger-iupl-button button').attr('disabled', false).css('cursor','auto'); |
| 250 | + $('.imcger-iupl-button button').prop('disabled', false).css('cursor','pointer'); |
251 | 251 | }); |
252 | 252 | } |
253 | 253 | } |
|
341 | 341 | * Delete a attached file. |
342 | 342 | */ |
343 | 343 | $('#file-list').on('click', '.file-delete', function(e) { |
344 | | - let $row = $(this).parents('.attach-row'), |
| 344 | + let $row = $(this).parents('.attach-row'), |
345 | 345 | attachId = $row.attr('data-attach-id'); |
346 | 346 |
|
347 | 347 | imcger.imgUpload.delImgBbcode(attachId); |
|
354 | 354 | */ |
355 | 355 | imcger.imgUpload.delImgBbcode = function(attachId) { |
356 | 356 | let $textarea = $('#message', phpbb.plupload.form), |
357 | | - text = $textarea.val(); |
| 357 | + text = $textarea.val(); |
358 | 358 |
|
359 | 359 | // Return if the bbcode isn't used at all. |
360 | 360 | if (text.indexOf('[img') === -1) { |
|
0 commit comments