From 6a04ad689bd94f0cddf8ab86f250823d7181f9d5 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 26 May 2011 10:53:42 -0400 Subject: [PATCH] Checking for 'twisty' leads to false negatives in Serial Control Since a tree can be opened with a double-click, we can't rely on 'twisty' being set to load the child data. Signed-off-by: Dan Wells --- Open-ILS/xul/staff_client/server/serial/manage_dists.js | 10 ++++------ Open-ILS/xul/staff_client/server/serial/manage_subs.js | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/serial/manage_dists.js b/Open-ILS/xul/staff_client/server/serial/manage_dists.js index c1a5df0bc7..9e02c1fec7 100644 --- a/Open-ILS/xul/staff_client/server/serial/manage_dists.js +++ b/Open-ILS/xul/staff_client/server/serial/manage_dists.js @@ -647,12 +647,10 @@ serial.manage_dists.prototype = { if (!sel_lists[row_type]) sel_lists[row_type] = []; sel_lists[row_type].push(id); - if (twisty) { - switch(row_type) { - case 'aou' : obj.on_click_aou(id,twisty); break; - case 'sdist' : obj.on_select_sdist(id,twisty); break; - default: break; - } + switch(row_type) { + case 'aou' : obj.on_click_aou(id,twisty); break; + case 'sdist' : obj.on_select_sdist(id,twisty); break; + default: break; } } diff --git a/Open-ILS/xul/staff_client/server/serial/manage_subs.js b/Open-ILS/xul/staff_client/server/serial/manage_subs.js index 2ce4184457..628ebbe50d 100644 --- a/Open-ILS/xul/staff_client/server/serial/manage_subs.js +++ b/Open-ILS/xul/staff_client/server/serial/manage_subs.js @@ -1117,12 +1117,10 @@ serial.manage_subs.prototype = { if (!sel_lists[row_type]) sel_lists[row_type] = []; sel_lists[row_type].push(id); - if (twisty) { - switch(row_type) { - case 'aou' : obj.on_click_aou(id,twisty); break; - case 'ssub' : obj.on_select_ssub(id,twisty); break; - default: break; - } + switch(row_type) { + case 'aou' : obj.on_click_aou(id,twisty); break; + case 'ssub' : obj.on_select_ssub(id,twisty); break; + default: break; } } -- 2.11.0