diff --git a/js/sql.js b/js/sql.js index 65d209ab65..1c8b3a5a4d 100644 --- a/js/sql.js +++ b/js/sql.js @@ -186,6 +186,13 @@ $(document).ready(function() { cache: 'false' }); + /* Hides the bookmarkoptions checkboxes when the bookmark label is empty */ + $('input#bkm_label').keyup(function() { + $('input#id_bkm_all_users, input#id_bkm_replace') + .parent() + .toggle($(this).attr('value').length > 0); + }).trigger('keyup'); + /** * current value of the direction in which the table is displayed * @type String