[open-ils-commits] r18182 - in trunk/Open-ILS/xul/staff_client: chrome/content/cat chrome/content/util server/cat server/serial (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 5 16:13:03 EDT 2010
Author: phasefx
Date: 2010-10-05 16:12:58 -0400 (Tue, 05 Oct 2010)
New Revision: 18182
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
trunk/Open-ILS/xul/staff_client/chrome/content/util/window.js
trunk/Open-ILS/xul/staff_client/server/cat/util.js
trunk/Open-ILS/xul/staff_client/server/serial/manage_items.js
Log:
patch from tsbere to use _blank for new windows instead of generated identifiers
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-10-05 19:33:44 UTC (rev 18181)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/cat/opac.js 2010-10-05 20:12:58 UTC (rev 18182)
@@ -497,7 +497,7 @@
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_SERIAL_SELECT_AOU),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen'
);
if (!g.data.create_mfhd_aou) {
@@ -634,7 +634,7 @@
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_RECORD_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen',
{
record_ids: [ docid ]
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/window.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/window.js 2010-10-05 19:33:44 UTC (rev 18181)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/window.js 2010-10-05 20:12:58 UTC (rev 18182)
@@ -17,18 +17,6 @@
// list of documents for debugging. BROKEN
'doc_list' : [],
- // Windows need unique names. This number helps.
- 'window_name_increment' : function() {
- JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
- if (typeof data.window_name_increment == 'undefined') {
- data.window_name_increment = 1;
- } else {
- data.window_name_increment++;
- }
- data.stash('window_name_increment');
- return data.window_name_increment;
- },
-
// This number gets put into the title bar for Top Level menu interface windows
'appshell_name_increment' : function() {
JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
@@ -74,7 +62,7 @@
'open' : function(url,title,features,my_xulG) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var key;
- if (!title) title = 'anon' + this.window_name_increment();
+ if (!title) title = '_blank';
if (!features) features = 'chrome';
this.error.sdump('D_WIN', 'opening ' + url + ', ' + title + ', ' + features + ' from ' + this.win + '\n');
var data;
Modified: trunk/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/util.js 2010-10-05 19:33:44 UTC (rev 18181)
+++ trunk/Open-ILS/xul/staff_client/server/cat/util.js 2010-10-05 20:12:58 UTC (rev 18182)
@@ -260,7 +260,7 @@
data.stash('cb_temp_copy_ids');
win.open(
xulG.url_prefix(urls.XUL_COPY_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,center'
);
}
@@ -269,7 +269,7 @@
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_RECORD_BUCKETS_QUICK),
- 'sel_bucket_win' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,center',
{
record_ids: record_ids
Modified: trunk/Open-ILS/xul/staff_client/server/serial/manage_items.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/manage_items.js 2010-10-05 19:33:44 UTC (rev 18181)
+++ trunk/Open-ILS/xul/staff_client/server/serial/manage_items.js 2010-10-05 20:12:58 UTC (rev 18182)
@@ -496,7 +496,7 @@
JSAN.use('util.window'); var win = new util.window();
win.open(
xulG.url_prefix(urls.XUL_SERIAL_SELECT_UNIT),
- 'sel_serial_sunit_win_' + win.window_name_increment(),
+ '_blank',
'chrome,resizable,modal,centerscreen'
);
if (!g.serial_items_sunit_select) {
More information about the open-ils-commits
mailing list