plugins/SpecialPageFuncs.php
changeset 588 20484deb89cd
parent 581 5e8fd89c02ea
child 590 03a60844c7c5
equal deleted inserted replaced
587:705ed7162315 588:20484deb89cd
   175   }
   175   }
   176   
   176   
   177   ?>
   177   ?>
   178   <enano:no-opt>
   178   <enano:no-opt>
   179   <script type="text/javascript">
   179   <script type="text/javascript">
   180     function cpGenPreviewUrl()
   180     window.cpGenPreviewUrl = function()
   181     {
   181     {
       
   182       if ( typeof(load_component) != 'function' )
       
   183         return false;
       
   184       
   182       var frm = document.forms['create_form'];
   185       var frm = document.forms['create_form'];
   183       var radio_custom = frm.getElementsByTagName('input')[2];
   186       var radio_custom = frm.getElementsByTagName('input')[2];
   184       var use_custom_url = radio_custom.checked;
   187       var use_custom_url = radio_custom.checked;
   185       if ( use_custom_url )
   188       if ( use_custom_url )
   186       {
   189       {
   248     echo '<input tabindex="5" type="submit" value="' . $lang->get('pagetools_create_btn_create') . '" />';
   251     echo '<input tabindex="5" type="submit" value="' . $lang->get('pagetools_create_btn_create') . '" />';
   249     echo '</p>';
   252     echo '</p>';
   250     
   253     
   251   echo '</form>';
   254   echo '</form>';
   252   
   255   
   253   echo '<script type="text/javascript">cpGenPreviewUrl();</script>';
   256   echo '<script type="text/javascript">addOnloadHook(cpGenPreviewUrl); addOnloadHook(function(){load_component(\'expander\')});</script>';
   254   
   257   
   255   $template->footer();
   258   $template->footer();
   256 }
   259 }
   257 
   260 
   258 function page_Special_CreatePage_Old()
   261 function page_Special_CreatePage_Old()