Working : Upload management : fix e.preventDefault in chrome and safari

This commit is contained in:
gmorel
2013-09-23 10:33:36 +02:00
parent b91a11536b
commit 7c563eda42
2 changed files with 4 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ $(function($){
couponManager.createOrUpdateRuleAjax();
}
}
return false;
});
};
couponManager.onClickSaveRule();
@@ -96,6 +96,7 @@ $(function($){
e.preventDefault();
var $this = $(this);
couponManager.removeRuleAjax($this.attr('data-int'));
return false;
});
};
couponManager.onClickDeleteRule();
@@ -109,6 +110,7 @@ $(function($){
// Hide row being updated
$this.parent().parent().remove();
return false;
});
};
couponManager.onClickUpdateRule();

View File

@@ -36,7 +36,6 @@ $(function($){
// Remove image on click
pictureUploadManager.onClickDeleteImage = function() {
$('.image-manager .image-delete-btn').on('click', function (e) {
console.log('deletingImage');
e.preventDefault();
var $this = $(this);
$this.parent().append('<div class="loading" ></div>');
@@ -58,6 +57,7 @@ $(function($){
data
);
});
return false;
});
};
pictureUploadManager.onClickDeleteImage();