|
From: Jirka P. <fi...@us...> - 2002-04-12 21:32:41
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv5404/phpbt/templates/default/admin
Modified Files:
project-edit.html
Log Message:
New function for empty component added. Project_id was missing in previous version and it's needed for add component to the project. This caused the buggy behaviour reported in bug 542938.
Index: project-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/project-edit.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- project-edit.html 11 Apr 2002 16:08:05 -0000 1.5
+++ project-edit.html 12 Apr 2002 21:32:37 -0000 1.6
@@ -1,4 +1,4 @@
-{include file="admin/header.html" page_title="$TITLE[editproject]"}
+{include file="admin/header.html" page_title="Edit Project"}
<script language="JavaScript">
<!--
@@ -8,6 +8,9 @@
function popupComponent(id) {
window.open(me + '?op=edit_component&use_js=1&id='+id, 'ewin', 'dependent=yes, width=450, height=300, scrollbars=auto');
}
+ function popupNewComponent(id) {
+ window.open(me + '?op=edit_component&use_js=1&project_id='+id+'&id=0', 'ewin', 'dependent=yes, width=450, height=300, scrollbars=auto');
+ }
function popupVersion(id) {
window.open(me + '?op=edit_version&use_js=1&id='+id, 'ewin', 'dependent=yes, width=250, height=150, scrollbars=auto');
}
@@ -85,7 +88,7 @@
</td>
<td width="50%" valign="top">
<br>
- <b>Components</b> - <a href="{$SCRIPT_NAME}?op=edit_component&id=0" onClick="popupComponent(0); return false;">{$STRING.addnew} Component</a>
+ <b>Components</b> - <a href="{$SCRIPT_NAME}?op=edit_component&project_id={$project_id}&id=0" onClick="popupNewComponent({$project_id}); return false;">{$STRING.addnew} Component</a>
<hr size="1">
<table border="0" cellpadding="2" width="100%">
<tr>
|