Initial commit
This commit is contained in:
9
public/js/admin.js
Normal file
9
public/js/admin.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function($){
|
||||
"use strict";
|
||||
$(function(){
|
||||
$(document).on("click","[data-confirm]",function(e){
|
||||
const msg = $(this).data("confirm") || "Are you sure?";
|
||||
if(!confirm(msg)) e.preventDefault();
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user