From 971b267958c3bf78abea332e0af4c46a23679b61 Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 30 May 2018 16:27:40 +0200 Subject: Fix assets compiling --- app/assets/javascripts/modal_confirmation.coffee | 29 ++++++++++++++++++++++ app/assets/javascripts/modal_confirmation.js | 31 ------------------------ 2 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 app/assets/javascripts/modal_confirmation.coffee delete mode 100644 app/assets/javascripts/modal_confirmation.js (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/modal_confirmation.coffee b/app/assets/javascripts/modal_confirmation.coffee new file mode 100644 index 000000000..0c80148e3 --- /dev/null +++ b/app/assets/javascripts/modal_confirmation.coffee @@ -0,0 +1,29 @@ +$(document).ready () => + $.rails.allowAction = (link) => + message = link.data('confirm') + if !message + return true + showConfirmModal link + false + + showConfirmModal = (link) => + message = link.data('confirm') + html = """""" + $(html).modal() diff --git a/app/assets/javascripts/modal_confirmation.js b/app/assets/javascripts/modal_confirmation.js deleted file mode 100644 index e82a8a81b..000000000 --- a/app/assets/javascripts/modal_confirmation.js +++ /dev/null @@ -1,31 +0,0 @@ -$(document).ready(() => { - $.rails.allowAction = (link) => { - let message = link.data('confirm') - if (!message) return true - showConfirmModal(link) - return false - } - - let showConfirmModal = (link) => { - let message = link.data('confirm') - let html = ` ` - $(html).modal() - } -}) \ No newline at end of file -- cgit v1.2.3