summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-02 17:54:22 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-02 17:54:22 -0700
commit9eee3b07a8abb1cd798372a20725290130ec183f (patch)
tree96f385fd1501b19a90fa1204809149b577c7979e
parent1cd321901b7225e0297ee4b14a9f7234e09748e3 (diff)
@todo if we uncheck all the children for a parent, we should uncheck the
parent itself, otherwise in the code we'll add the entire parent since if we find an album as a leaf, we assume that it's never been expanded in the UI.
-rw-r--r--modules/server_add/js/server_add.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/server_add/js/server_add.js b/modules/server_add/js/server_add.js
index 32176108..568ef91f 100644
--- a/modules/server_add/js/server_add.js
+++ b/modules/server_add/js/server_add.js
@@ -42,6 +42,9 @@ function click_node(checkbox) {
var checked = $(checkbox).attr("checked");
$(parent).find("input[type=checkbox]").attr("checked", checked);
+ // @todo if we uncheck all the children for a parent, we should uncheck the
+ // parent itself, otherwise in the code we'll add the entire parent since if
+ // we find an album as a leaf, we assume that it's never been expanded in the UI.
if ($("#gServerAddTree").find("input[type=checkbox]").is(":checked")) {
$("#gServerAddAddButton").enable(true);
$("#gServerAddAddButton").removeClass("ui-state-disabled");