mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
update jquery attr into prop method for checked and disabled properties
This commit is contained in:
@@ -302,7 +302,7 @@
|
||||
url: form.attr('action'),
|
||||
data: form.serializeArray(),
|
||||
beforeSend : function() {
|
||||
submitLink.attr('disabled', true).addClass('disabled');
|
||||
submitLink.prop('disabled', true).addClass('disabled');
|
||||
},
|
||||
success: function(datas) {
|
||||
if(datas.success) {
|
||||
@@ -320,7 +320,7 @@
|
||||
}
|
||||
},
|
||||
complete: function() {
|
||||
submitLink.attr('disabled', false).removeClass('disabled');
|
||||
submitLink.prop('disabled', false).removeClass('disabled');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@
|
||||
data: {order: order},
|
||||
url: '{{ path('admin_database_submit_collections_order', {'databox_id': app['request'].attributes.get('databox_id')}) }}',
|
||||
beforeSend : function() {
|
||||
$this.attr('disabled', true);
|
||||
$this.prop('disabled',true)
|
||||
},
|
||||
success : function(datas) {
|
||||
var html = _.template($("#alert_"+ (datas.success ? "success" : "error") +"_tpl").html(), {
|
||||
@@ -92,7 +92,7 @@
|
||||
$('#notification').html(html);
|
||||
},
|
||||
complete : function() {
|
||||
$this.attr('disabled', false);
|
||||
$this.prop('disabled',false)
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -118,15 +118,15 @@
|
||||
var selectedIndex = select.prop("selectedIndex");
|
||||
if(selectedIndex !== -1 ) {
|
||||
if (selectedIndex === 0) {
|
||||
upButton.attr('disabled', true);
|
||||
upButton.prop('disabled', true)
|
||||
} else {
|
||||
upButton.attr('disabled', false);
|
||||
upButton.prop('disabled', false)
|
||||
}
|
||||
|
||||
if (selectedIndex + 1 === select.find('option').length) {
|
||||
downButton.attr('disabled', true);
|
||||
downButton.prop('disabled', true)
|
||||
} else {
|
||||
downButton.attr('disabled', false);
|
||||
downButton.prop('disabled', false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -768,9 +768,9 @@ function activer_bout(idBout,val)
|
||||
|
||||
if( o.length > 0 ) {
|
||||
if (!val) {
|
||||
o.attr("disabled", true);
|
||||
o.prop('disabled', true);
|
||||
} else {
|
||||
o.removeAttr("disabled");
|
||||
o.prop('disabled', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user