[open-ils-commits] r9837 -
trunk/Open-ILS/xul/staff_client/server/cat
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jun 16 09:04:30 EDT 2008
Author: dbs
Date: 2008-06-16 09:04:29 -0400 (Mon, 16 Jun 2008)
New Revision: 9837
Modified:
trunk/Open-ILS/xul/staff_client/server/cat/util.js
Log:
Prevent the title from being concatenated and remove obsolete comments
Modified: trunk/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/util.js 2008-06-13 21:16:07 UTC (rev 9836)
+++ trunk/Open-ILS/xul/staff_client/server/cat/util.js 2008-06-16 13:04:29 UTC (rev 9837)
@@ -244,18 +244,14 @@
var title = '';
if (params.copy_ids && params.copy_ids.length > 1 && params.edit == 1)
- title += $("catStrings").getString('staff.cat.util.copy_editor.batch_edit');
+ title = $("catStrings").getString('staff.cat.util.copy_editor.batch_edit');
else if(params.copies && params.copies.length > 1 && params.edit == 1)
- title += $("catStrings").getString('staff.cat.util.copy_editor.batch_view');
+ title = $("catStrings").getString('staff.cat.util.copy_editor.batch_view');
else if(params.copy_ids && params.copy_ids.length == 1)
- title += $("catStrings").getString('staff.cat.util.copy_editor.edit');
+ title = $("catStrings").getString('staff.cat.util.copy_editor.edit');
else
- title += $("catStrings").getString('staff.cat.util.copy_editor.view');
+ title = $("catStrings").getString('staff.cat.util.copy_editor.view');
- //FIXME I18N This is a constructed string! No can do! if ((params.copy_ids && params.copy_ids.length > 1) || (params.copies && params.copies.length > 1 )) title += $("catStrings").getString('staff.cat.util.copy_editor.batch_in_title');
- //title += params.edit == 1 ? $("catStrings").getString('staff.cat.util.copy_editor.edit_in_title') : $("catStrings").getString('staff.cat.util.copy_editor.view_in_title');
- //title += $("catStrings").getString('staff.cat.util.copy_editor.copy_attributes_in_title');
-
JSAN.use('util.window'); var win = new util.window();
var my_xulG = win.open(
(urls.XUL_COPY_EDITOR),
More information about the open-ils-commits
mailing list