Add task links (Merge pull-request #610)
This commit is contained in:
19
assets/js/src/link.js
Normal file
19
assets/js/src/link.js
Normal file
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user