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

mark at devel.lifetype.net mark at devel.lifetype.net
Sun Mar 4 23:17:54 EST 2007


Author: mark
Date: 2007-03-04 23:17:54 -0500 (Sun, 04 Mar 2007)
New Revision: 4985

Removed:
   plog/branches/lifetype-1.2/js/rico/
Modified:
   plog/branches/lifetype-1.2/js/ui/plogui.js
   plog/branches/lifetype-1.2/templates/admin/editpost.template
   plog/branches/lifetype-1.2/templates/admin/header.template
   plog/branches/lifetype-1.2/templates/admin/newpost.template
Log:
The show/hide OptionPanel is not working in current crystal template. So, I just remove it.

And the Rico library does not used anymore. So remove it, too.

Modified: plog/branches/lifetype-1.2/js/ui/plogui.js
===================================================================
--- plog/branches/lifetype-1.2/js/ui/plogui.js	2007-03-05 04:02:25 UTC (rev 4984)
+++ plog/branches/lifetype-1.2/js/ui/plogui.js	2007-03-05 04:17:54 UTC (rev 4985)
@@ -112,30 +112,6 @@
 /**
  * this function is the one called when clicking the "add category" button
  */
-function switchOptionPanel()
-{
-	if ( $('optionPanel').style.display == 'none' )
-	{
-		startWidth = $('mainPanel').offsetWidth;
-		new Rico.Effect.Size( $('mainPanel'), 489, null, 500, 10, {
-			complete:function() { 
-				Element.show($('optionPanel'));
-				$('optionIconLink').innerHTML = msgHideOptionPanel;
-				$('optionIconLink').title = msgHideOptionPanel;
-			}} );
-	}
-	else
-	{
-		Element.hide($('optionPanel'));
-		startWidth = $('mainPanel').offsetWidth;
-		new Rico.Effect.Size( $('mainPanel'), 660, null, 500, 10, {
-			complete:function() { 
-				$('optionIconLink').innerHTML = msgShowOptionPanel;
-				$('optionIconLink').title = msgShowOptionPanel;
-			}} );
-	}
-}
-
 function submitPostsList(op)
 {
 	if ( op == 'changePostsStatus' )

Modified: plog/branches/lifetype-1.2/templates/admin/editpost.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editpost.template	2007-03-05 04:02:25 UTC (rev 4984)
+++ plog/branches/lifetype-1.2/templates/admin/editpost.template	2007-03-05 04:17:54 UTC (rev 4985)
@@ -19,8 +19,6 @@
   // some messages that we are going to need in the functions above 
   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")}";  
   var preview = false;
     
   {include file="$admintemplatepath/calendarstuff.template"}
@@ -46,11 +44,6 @@
   <form name="newPost" id="newPost" action="admin.php" method="post" onSubmit="return selectOperation(this.target);" target="admin">   
    <fieldset class="inputField">
    <legend>{$locale->tr("editPost")}</legend>
-
-   <div class="optionIcon">
-     <a id="optionIconLink" href="#" title="{$locale->tr("hide_option_panel")}" onclick="switchOptionPanel()">{$locale->tr("hide_option_panel")}</a>
-   </div> 
-   
    <div id="mainPanel" style="float:left; width: 73%; border-right: 1px solid #DEDEDE;">  
      {include file="$admintemplatepath/formvalidate.template"}    
 	 

Modified: plog/branches/lifetype-1.2/templates/admin/header.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/header.template	2007-03-05 04:02:25 UTC (rev 4984)
+++ plog/branches/lifetype-1.2/templates/admin/header.template	2007-03-05 04:17:54 UTC (rev 4985)
@@ -26,7 +26,6 @@
 </script>
 <script type="text/javascript" src="js/cookie/cookie.js"></script>
 <script type="text/javascript" src="js/prototype/prototype.js"></script>
-<script type="text/javascript" src="js/rico/rico.js"></script>
 <!-- LifeType UI Library -->
 <script type="text/javascript" src="js/ui/default.js"></script>
 <script type="text/javascript" src="js/ui/common.js"></script>

Modified: plog/branches/lifetype-1.2/templates/admin/newpost.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/newpost.template	2007-03-05 04:02:25 UTC (rev 4984)
+++ plog/branches/lifetype-1.2/templates/admin/newpost.template	2007-03-05 04:17:54 UTC (rev 4985)
@@ -27,8 +27,6 @@
   var msgErrorPostTopic = "{$locale->tr("error_missing_post_topic")}";
   var msgErrorPostText = "{$locale->tr("error_missing_post_text")}";
   var msgSaving = "{$locale->tr("saving_message")}";
-  var msgShowOptionPanel = "{$locale->tr("show_option_panel")}";
-  var msgHideOptionPanel = "{$locale->tr("hide_option_panel")}";
   var msgAutoSaveMessage = '{$locale->tr("warning_autosave_message")|escape:javascript}';
   
   var todayDay = '{$today->getDay()}';
@@ -62,10 +60,6 @@
   <form name="newPost" id="newPost" action="admin.php" method="post" onSubmit="return selectOperation(this.target);" target="admin">   
    <fieldset class="inputField">
    <legend>{$locale->tr("newPost")}</legend>
-   <div class="optionIcon">
-     <a id="optionIconLink" href="#" title="{$locale->tr("hide_option_panel")}" onclick="switchOptionPanel()">{$locale->tr("hide_option_panel")}</a>
-   </div> 
-
    <div id="mainPanel" style="float:left; width: 73%; border-right: 1px solid #DEDEDE;">
 	   <div id="autoSaveMessage" style="display: none;"></div>
 	   {include file="$admintemplatepath/formvalidate.template"}  



More information about the pLog-svn mailing list