Skip to content

Commit 02c8f9d

Browse files
committed
Use .prop() for element properties
1 parent 76a9bd1 commit 02c8f9d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

imcger/imgupload/styles/all/template/event/overall_footer_body_after.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
imgOrientationValue: [],
103103

104104
/**
105-
* Subroutine from rotateRight() and rotateLeft()
105+
* Subroutine for rotateRight() and rotateLeft()
106106
*
107107
* @param int attach_id attach id from image
108108
* @param int deg angle to rotated
@@ -203,10 +203,10 @@
203203
'&creation_time=' + $('input[name="creation_time"]').val() +
204204
'&form_token=' + $('input[name="form_token"]').val();
205205

206-
let ajaxReq = $.ajax({
206+
let ajaxReq = $.ajax({
207207
// The url of the request
208208
url: url,
209-
209+
210210
// The data to send
211211
data: requestData,
212212

@@ -222,7 +222,7 @@
222222
// Code to run before the request is send
223223
beforeSend: function(xhr, settings) {
224224
$(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');
226226
},
227227
});
228228

@@ -247,7 +247,7 @@
247247
// Code to run regardless of success or failure;
248248
ajaxReq.always(function(xhr, status) {
249249
$(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');
251251
});
252252
}
253253
}
@@ -341,7 +341,7 @@
341341
* Delete a attached file.
342342
*/
343343
$('#file-list').on('click', '.file-delete', function(e) {
344-
let $row = $(this).parents('.attach-row'),
344+
let $row = $(this).parents('.attach-row'),
345345
attachId = $row.attr('data-attach-id');
346346

347347
imcger.imgUpload.delImgBbcode(attachId);
@@ -354,7 +354,7 @@
354354
*/
355355
imcger.imgUpload.delImgBbcode = function(attachId) {
356356
let $textarea = $('#message', phpbb.plupload.form),
357-
text = $textarea.val();
357+
text = $textarea.val();
358358

359359
// Return if the bbcode isn't used at all.
360360
if (text.indexOf('[img') === -1) {

0 commit comments

Comments
 (0)