[interchange-cvs] interchange - racke modified 2 files
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Sat Apr 24 07:06:15 EDT 2004
User: racke
Date: 2004-04-24 11:06:14 GMT
Modified: . WHATSNEW-5.3
Modified: dist/lib/UI/pages/admin item_edit.html
Log:
Display "New item" in the HTML title of the item editor for new items.
Revision Changes Path
2.7 +5 -0 interchange/WHATSNEW-5.3
rev 2.7, prev_rev 2.6
Index: WHATSNEW-5.3
===================================================================
RCS file: /var/cvs/interchange/WHATSNEW-5.3,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -r2.6 -r2.7
--- WHATSNEW-5.3 22 Apr 2004 23:03:02 -0000 2.6
+++ WHATSNEW-5.3 24 Apr 2004 11:06:14 -0000 2.7
@@ -16,6 +16,11 @@
* Customer Mailing added to edit permissions page.
+* Fix the long-standing "page [cgi mv_data_table] not found" error on
+ return from meta_editor.
+
+* Display "New item" in the HTML title of the item editor for new items.
+
Foundation
----------
2.9 +8 -3 interchange/dist/lib/UI/pages/admin/item_edit.html
rev 2.9, prev_rev 2.8
Index: item_edit.html
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/admin/item_edit.html,v
retrieving revision 2.8
retrieving revision 2.9
diff -u -r2.8 -r2.9
--- item_edit.html 23 Apr 2004 17:12:02 -0000 2.8
+++ item_edit.html 24 Apr 2004 11:06:14 -0000 2.9
@@ -3,12 +3,17 @@
$CGI->{ui_return_to} = 'admin/item';
}
$CGI->{mv_data_table} = $Config->{ProductFiles}[0];
- $CGI->{ui_hide_key} = 1 unless $CGI->{ui_new_item};
$CGI->{ui_return_to} ||= '__UI_BASE__/item';
$Tag->tmpn('tmp_item_id');
$Scratch->{tmp_item_id} = $CGI->{item_id} || $CGI->{item_id_left};
$Scratch->{tmp_item_id} =~ s/\0.*//
or $Scratch->{tmp_item_id} =~ s/,.*//;
+ if ($CGI->{ui_new_item}) {
+ $Scratch->{'item_label'} = '[L]New item[/L]';
+ } else {
+ $Scratch->{'item_label'} = $Scratch->{tmp_item_id};
+ $CGI->{ui_hide_key} = 1;
+ }
return;
[/calc]
@@ -32,7 +37,7 @@
[/if]
[set ui_class]Items[/set]
-[seti page_title][L]Item editor[/L]: [scratch tmp_item_id][/seti]
+[seti page_title][L]Item editor[/L]: [scratchd item_label][/seti]
[set help_name]edit.item[/set]
[set icon_name]icon_item.gif[/set]
@@ -79,4 +84,4 @@
[/if-mm]
@_UI_STD_FOOTER_@
-<!-- page: @@MV_PAGE@@ version: $Revision: 2.8 $ -->
+<!-- page: @@MV_PAGE@@ version: $Revision: 2.9 $ -->
More information about the interchange-cvs
mailing list