[pLog-svn] r4478 - plog/branches/lifetype-1.1.4/templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Wed Jan 3 22:36:20 GMT 2007


Author: oscar
Date: 2007-01-03 22:36:19 +0000 (Wed, 03 Jan 2007)
New Revision: 4478

Modified:
   plog/branches/lifetype-1.1.4/templates/admin/editpost.template
Log:
quick and dirty fix for mantis issue http://bugs.lifetype.net/view.php?id=1148 -- "Insert resource" pop-up window not working in the "edit post" page with the non-visual editor of HTML code. I only renamed the HTML from "editPost" to "newPost", as it was an easier solution than fixing the javascript...

Modified: plog/branches/lifetype-1.1.4/templates/admin/editpost.template
===================================================================
--- plog/branches/lifetype-1.1.4/templates/admin/editpost.template	2007-01-03 22:26:58 UTC (rev 4477)
+++ plog/branches/lifetype-1.1.4/templates/admin/editpost.template	2007-01-03 22:36:19 UTC (rev 4478)
@@ -31,20 +31,20 @@
 function selectOperation( t )
 {
 	if( preview ) {	
-		document.editPost.op.value="previewPost";
+		document.newPost.op.value="previewPost";
 		window.open("", t, "scrollbars=yes,resizable=yes,toolbar=no" );
 		return true;
 	}
 	else {
-		document.editPost.op.value="updatePost";
-		document.editPost.target="";
-		document.editPost.action="admin.php";
+		document.newPost.op.value="updatePost";
+		document.newPost.target="";
+		document.newPost.action="admin.php";
 		return true;
 	}
 }
 {/literal}
  </script>
-  <form name="editPost" id="editPost" method="post" onSubmit="return selectOperation(this.target);" target="admin">   
+  <form name="newPost" id="newPost" method="post" onSubmit="return selectOperation(this.target);" target="admin">   
    <fieldset class="inputField">
    <legend>{$locale->tr("editPost")}</legend>
 



More information about the pLog-svn mailing list