(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);
