Prevent the title from being concatenated and remove obsolete comments
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Jun 2008 13:04:29 +0000 (13:04 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Jun 2008 13:04:29 +0000 (13:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9837 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/util.js

index 220eea9..f7bd376 100644 (file)
@@ -244,18 +244,14 @@ cat.util.spawn_copy_editor = function(params) {
        
                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),