Skip to content

Instantly share code, notes, and snippets.

@Mesnet
Mesnet / _materializecss-rails-confirm.js
Last active May 1, 2018 12:52 — forked from chris-gooley/_materializecss-rails-confirm.coffee
From Chris-gooley the js file with background and SlideAnimations
$(function() {
$.rails.allowAction = function(link) {
if (!link.attr("data-confirm")) {
return true;
}
$.rails.showConfirmDialog(link);
return false;
};