[pLog-svn] r5598 - in plog/branches/lifetype-1.2: js/ui templates/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 2 01:07:23 EDT 2007


Author: mark
Date: 2007-07-02 01:07:22 -0400 (Mon, 02 Jul 2007)
New Revision: 5598

Modified:
   plog/branches/lifetype-1.2/js/ui/common.js
   plog/branches/lifetype-1.2/templates/admin/globalsettings_general.template
Log:
Fixed the bug http://bugs.lifetype.net/view.php?id=1351

Let the user can set the default_blog_id to empty, and use the blog_does_not_exist_url function.

Modified: plog/branches/lifetype-1.2/js/ui/common.js
===================================================================
--- plog/branches/lifetype-1.2/js/ui/common.js	2007-06-30 20:11:32 UTC (rev 5597)
+++ plog/branches/lifetype-1.2/js/ui/common.js	2007-07-02 05:07:22 UTC (rev 5598)
@@ -51,6 +51,14 @@
 }
 
 /**
+ * resets blogid in the general setting page
+ */
+function resetBlogId()
+{
+    window.document.updateGlobalSettings.blogId.value = '';
+}
+
+/**
  * empties a drop-down list
  *
  * @param box The form object representing the drop-down list

Modified: plog/branches/lifetype-1.2/templates/admin/globalsettings_general.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/globalsettings_general.template	2007-06-30 20:11:32 UTC (rev 5597)
+++ plog/branches/lifetype-1.2/templates/admin/globalsettings_general.template	2007-07-02 05:07:22 UTC (rev 5598)
@@ -125,6 +125,7 @@
 	<a href="#" onclick="window.open('?op=siteBlogsChooser','BlogChooser','scrollbars=yes,resizable=yes,toolbar=no,height=450,width=600');">
 	 {$locale->tr("select")}
 	</a>
+	&nbsp;<a href="javascript:resetBlogId();">{$locale->tr("reset")}</a>
    </div>
    <!-- default_global_article_category_id -->
    <div class="field">



More information about the pLog-svn mailing list