diff options
| author | Zog | 2018-04-06 14:46:19 +0200 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-10 23:28:47 -0700 | 
| commit | 03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4 (patch) | |
| tree | 842e1a5ae9e28274b991f49cf335e2debb959c7e /app/helpers | |
| parent | 9f374650488fdbfd86fbbdc66cfebda4e9f5a551 (diff) | |
| download | chouette-core-03b4010981f5d47fbd8dd468bbe5fc320fd7a9e4.tar.bz2 | |
Refs #6426; Disable "Create opposite route" action instead of hiding it
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/table_builder_helper.rb | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb index 63125b161..e2aa2e9ea 100644 --- a/app/helpers/table_builder_helper.rb +++ b/app/helpers/table_builder_helper.rb @@ -402,9 +402,10 @@ module TableBuilderHelper      content_tag(        :li,        link_to( -        link.href, -        method: link.method, -        data: link.data +        link.disabled ? '#' : link.href, +        method: link.disabled ? nil : link.method, +        data: link.data, +        disabled: link.disabled        ) do          link.content        end, | 
