From a08bfa3964e43b341d0ae52610148765ae0ca721 Mon Sep 17 00:00:00 2001 From: Tyron Madlener Date: Wed, 22 Jun 2011 20:45:14 +0200 Subject: [PATCH] Hides the bookmarkoptions checkboxes when the bookmark label is empty --- js/sql.js | 7 +++++++ 1 file changed, 7 insertions(+) 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