diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-13 17:50:20 -0500 |
commit | 364382b1b58db8bf1bd2c8866e21c869a7a5d6d0 (patch) | |
tree | e1bdaf8c76bbb6036b3bb7a3a19e8cc1e2e99604 /assets/js/src | |
parent | 124f7cad284d7ce867666def5731ad34a9265e63 (diff) |
Add task links (Merge pull-request #610)
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/link.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/assets/js/src/link.js b/assets/js/src/link.js new file mode 100644 index 00000000..31eeafad --- /dev/null +++ b/assets/js/src/link.js @@ -0,0 +1,19 @@ +Kanboard.Link = (function() { + + function on_change() { + if ($('.behaviour').prop('checked')) { + $('.link-inverse-label').hide(); + } + else { + $('.link-inverse-label').show(); + } + } + + jQuery(document).ready(function() { + if (Kanboard.Exists("link-edit-section")) { + on_change(); + $(".behaviour").click(on_change); + } + }); + +})();
\ No newline at end of file |