From: phasefx Date: Mon, 16 Jul 2007 20:12:03 +0000 (+0000) Subject: fancy_prompt and modal_xulG bug where window.open was being used instead of the JSAN... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce7b138e4ac3fc2505ec8129fb147b60f23105cc;p=Evergreen.git fancy_prompt and modal_xulG bug where window.open was being used instead of the JSAN wrapper library (util.window) where the modal_xulG way of passing data to/from modal windows is managed git-svn-id: svn://svn.open-ils.org/ILS/trunk@7555 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/cat/record_buckets.js b/Open-ILS/xul/staff_client/server/cat/record_buckets.js index 0da10d2e9e..ac6191bbaa 100644 --- a/Open-ILS/xul/staff_client/server/cat/record_buckets.js +++ b/Open-ILS/xul/staff_client/server/cat/record_buckets.js @@ -508,7 +508,8 @@ cat.record_buckets.prototype = { xml += ''; //obj.data.temp_merge_top = top_xml; obj.data.stash('temp_merge_top'); //obj.data.temp_merge_mid = xml; obj.data.stash('temp_merge_mid'); - window.open( + JSAN.use('util.window'); var win = new util.window(); + var fancy_prompt_data = win.open( urls.XUL_FANCY_PROMPT, //+ '?xml_in_stash=temp_merge_mid' //+ '&top_xml_in_stash=temp_merge_top' @@ -518,15 +519,15 @@ cat.record_buckets.prototype = { 'top_xml' : top_xml, 'xml' : xml, 'title' : 'Record Merging' } ); - obj.data.stash_retrieve(); - if (obj.data.fancy_prompt_data == '') { alert('Merge Aborted'); return; } + //obj.data.stash_retrieve(); + if (fancy_prompt_data.fancy_status == 'incomplete') { alert('Merge Aborted'); return; } var robj = obj.network.simple_request('MERGE_RECORDS', [ ses(), - obj.data.fancy_prompt_data.lead, + fancy_prompt_data.lead, util.functional.filter_list( record_ids, function(o) { - return o != obj.data.fancy_prompt_data.lead; + return o != fancy_prompt_data.lead; } ) ] @@ -568,8 +569,8 @@ cat.record_buckets.prototype = { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect UniversalBrowserWrite'); var top_xml = ''; - top_xml += 'Delete these records? (Select the "lead" record first)'; - top_xml += '