|
From: Benjamin C. <bc...@us...> - 2002-04-13 14:52:00
|
Update of /cvsroot/phpbt/phpbt/templates/default/admin
In directory usw-pr-cvs1:/tmp/cvs-serv8456/templates/default/admin
Modified Files:
project-edit.html
Log Message:
Let's re-fix that component creation and fix the same problem with version creation
Index: project-edit.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/admin/project-edit.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- project-edit.html 12 Apr 2002 21:32:37 -0000 1.6
+++ project-edit.html 13 Apr 2002 14:51:57 -0000 1.7
@@ -3,16 +3,17 @@
<script language="JavaScript">
<!--
var me = '{$SCRIPT_NAME}';
+ var projectId = '{$project_id}';
{literal}
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');
+ window.open(me + '?op=edit_component&project_id='+projectId+'&use_js=1&id='+id, 'ewin', 'dependent=yes, width=450, height=300, scrollbars=auto');
+ return false;
}
+
function popupVersion(id) {
- window.open(me + '?op=edit_version&use_js=1&id='+id, 'ewin', 'dependent=yes, width=250, height=150, scrollbars=auto');
+ window.open(me + '?op=edit_version&project_id='+projectId+'&use_js=1&id='+id, 'ewin', 'dependent=yes, width=250, height=150, scrollbars=auto');
+ return false;
}
{/literal}
// -->
@@ -63,7 +64,7 @@
<tr>
<td width="50%" valign="top">
<br>
- <b>Versions</b> - <a href="{$SCRIPT_NAME}?op=edit_version&id=0" onClick="popupVersion(0); return false;">{$STRING.addnew} Version</a>
+ <b>Versions</b> - <a href="{$SCRIPT_NAME}?op=edit_version&project_id={$project_id}&id=0" onClick="return popupVersion(0);">{$STRING.addnew} Version</a>
<hr size="1">
<table border="0" cellpadding="2" width="100%">
<tr>
@@ -88,7 +89,7 @@
</td>
<td width="50%" valign="top">
<br>
- <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>
+ <b>Components</b> - <a href="{$SCRIPT_NAME}?op=edit_component&project_id={$project_id}&id=0" onClick="return popupComponent(0);">{$STRING.addnew} Component</a>
<hr size="1">
<table border="0" cellpadding="2" width="100%">
<tr>
|