aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets
diff options
context:
space:
mode:
authorZog2018-04-06 14:46:19 +0200
committercedricnjanga2018-04-10 23:28:47 -0700
commit03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4 (patch)
tree842e1a5ae9e28274b991f49cf335e2debb959c7e /app/assets
parent9f374650488fdbfd86fbbdc66cfebda4e9f5a551 (diff)
downloadchouette-core-03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4.tar.bz2
Refs #6426; Disable "Create opposite route" action instead of hiding it
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/application.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index 6a79f7e8e..3eaade37f 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -25,3 +25,9 @@
//= require "i18n"
//= require "i18n/extended"
//= require "i18n/translations"
+
+$(document).ready(function() {
+ $('a[disabled=disabled]').click(function(event){
+ event.preventDefault(); // Prevent link from following its href
+ });
+});