[pLog-svn] r4716 - plog/branches/lifetype-1.2/templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Feb 11 12:19:29 EST 2007


Author: oscar
Date: 2007-02-11 12:19:29 -0500 (Sun, 11 Feb 2007)
New Revision: 4716

Modified:
   plog/branches/lifetype-1.2/templates/admin/editpost.template
   plog/branches/lifetype-1.2/templates/admin/newpost.template
Log:
fixed the javascript definition of the htmlAreaEnabled variable


Modified: plog/branches/lifetype-1.2/templates/admin/editpost.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editpost.template	2007-02-11 17:16:06 UTC (rev 4715)
+++ plog/branches/lifetype-1.2/templates/admin/editpost.template	2007-02-11 17:19:29 UTC (rev 4716)
@@ -17,7 +17,7 @@
  <script type="text/javascript">
   
   // some messages that we are going to need in the functions above 
-  var htmlAreaEnabled = '{$htmlarea}';
+  var htmlAreaEnabled = {if $htmlarea==0 || !$htmlarea}false{else}true{/if};
   var msgSaving = "{$locale->tr("saving_message")}";  
   var msgShowOptionPanel = "{$locale->tr("show_option_panel")}";
   var msgHideOptionPanel = "{$locale->tr("hide_option_panel")}";  

Modified: plog/branches/lifetype-1.2/templates/admin/newpost.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/newpost.template	2007-02-11 17:16:06 UTC (rev 4715)
+++ plog/branches/lifetype-1.2/templates/admin/newpost.template	2007-02-11 17:19:29 UTC (rev 4716)
@@ -23,7 +23,7 @@
   var msgErrorMakingRequest = "{$locale->tr("error_sending_request")}";
   var msgErrorNoCategorySelected = "{$locale->tr("error_no_category_selected")}";
   var xmlHttpRequestSupportEnabled = '{$xmlHttpRequestSupportEnabled}';
-  var htmlAreaEnabled = '{$htmlarea}';
+  var htmlAreaEnabled = {if $htmlarea==0 || !$htmlarea}false{else}true{/if};
   var msgErrorPostTopic = "{$locale->tr("error_missing_post_topic")}";
   var msgErrorPostText = "{$locale->tr("error_missing_post_text")}";
   var msgSaving = "{$locale->tr("saving_message")}";



More information about the pLog-svn mailing list