Working : Upload management : fix e.preventDefault in chrome and safari
This commit is contained in:
@@ -85,7 +85,7 @@ $(function($){
|
|||||||
couponManager.createOrUpdateRuleAjax();
|
couponManager.createOrUpdateRuleAjax();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
couponManager.onClickSaveRule();
|
couponManager.onClickSaveRule();
|
||||||
@@ -96,6 +96,7 @@ $(function($){
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
couponManager.removeRuleAjax($this.attr('data-int'));
|
couponManager.removeRuleAjax($this.attr('data-int'));
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
couponManager.onClickDeleteRule();
|
couponManager.onClickDeleteRule();
|
||||||
@@ -109,6 +110,7 @@ $(function($){
|
|||||||
|
|
||||||
// Hide row being updated
|
// Hide row being updated
|
||||||
$this.parent().parent().remove();
|
$this.parent().parent().remove();
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
couponManager.onClickUpdateRule();
|
couponManager.onClickUpdateRule();
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ $(function($){
|
|||||||
// Remove image on click
|
// Remove image on click
|
||||||
pictureUploadManager.onClickDeleteImage = function() {
|
pictureUploadManager.onClickDeleteImage = function() {
|
||||||
$('.image-manager .image-delete-btn').on('click', function (e) {
|
$('.image-manager .image-delete-btn').on('click', function (e) {
|
||||||
console.log('deletingImage');
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
$this.parent().append('<div class="loading" ></div>');
|
$this.parent().append('<div class="loading" ></div>');
|
||||||
@@ -58,6 +57,7 @@ $(function($){
|
|||||||
data
|
data
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
pictureUploadManager.onClickDeleteImage();
|
pictureUploadManager.onClickDeleteImage();
|
||||||
|
|||||||
Reference in New Issue
Block a user