diff options
Diffstat (limited to 'assets/js/src/link.js')
-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 |