update jquery attr into prop method for checked and disabled properties

This commit is contained in:
Florian BLOUET
2015-11-25 16:40:45 +01:00
parent 454f9d4db0
commit 5d2735cd0a
18 changed files with 78 additions and 73 deletions

View File

@@ -374,7 +374,7 @@ $(document).ready(function(){
dataType : 'json',
data : form.serializeArray(),
beforeSend: function(){
$this.attr('disabled', true);
$this.prop('disabled', true);
},
success : function(data){
if(!data.success){
@@ -385,7 +385,7 @@ $(document).ready(function(){
}
},
complete: function(){
$this.attr('disabled', false);
$this.prop('disabled', false);
}
});
@@ -439,7 +439,7 @@ $(document).ready(function(){
});
$("img", sliderWrapper).live("click", function(){
$("img", sliderWrapper).on("click", function(){
$('.selected', sliderWrapper).removeClass('selected');
$(this).addClass('selected');
@@ -464,7 +464,7 @@ $(document).ready(function(){
.appendTo(sliderWrapper);
});
$("#thumb_canvas").live('tool_event', function(){
$("#thumb_canvas").on('tool_event', function(){
var thumbnail = $('.selected', sliderWrapper);
if(thumbnail.length === 0)