[geeklog-hg] geeklog: New config option topictoid to enable/disable the Topic...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jan 9 20:26:40 EST 2014


changeset 9406:8fbc3b1623e8
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8fbc3b1623e8
user: Tom <websitemaster at cogeco.net>
date: Thu Jan 09 20:24:48 2014 -0500
description:
New config option topictoid to enable/disable the Topic To Id feature for Article, Topic and Staticpage Admin Editor (bug #0001732)

diffstat:

 language/english.php                                                       |  1 +
 language/english_utf-8.php                                                 |  1 +
 plugins/staticpages/templates/admin/editor.thtml                           |  2 +-
 plugins/staticpages/templates/admin/editor_advanced.thtml                  |  2 +-
 public_html/admin/configuration_validation.php                             |  1 +
 public_html/admin/install/config-install.php                               |  1 +
 public_html/admin/plugins/staticpages/index.php                            |  9 ++++++---
 public_html/admin/story.php                                                |  5 ++++-
 public_html/admin/topic.php                                                |  6 ++++--
 public_html/docs/english/config.html                                       |  5 +++++
 public_html/docs/english/theme.html                                        |  3 ++-
 public_html/docs/japanese/config.html                                      |  7 ++++++-
 public_html/layout/denim/admin/story/storyeditor.thtml                     |  2 +-
 public_html/layout/denim/admin/story/storyeditor_advanced.thtml            |  2 +-
 public_html/layout/denim/admin/topic/topiceditor.thtml                     |  2 +-
 public_html/layout/modern_curve/admin/story/storyeditor.thtml              |  2 +-
 public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml     |  2 +-
 public_html/layout/modern_curve/admin/topic/topiceditor.thtml              |  2 +-
 public_html/layout/professional/admin/story/storyeditor.thtml              |  2 +-
 public_html/layout/professional/admin/story/storyeditor_advanced.thtml     |  2 +-
 public_html/layout/professional/admin/topic/topiceditor.thtml              |  2 +-
 public_html/layout/professional_css/admin/story/storyeditor.thtml          |  2 +-
 public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml |  2 +-
 public_html/layout/professional_css/admin/topic/topiceditor.thtml          |  2 +-
 sql/updates/mssql_2.0.0_to_2.1.0.php                                       |  3 +++
 sql/updates/mysql_2.0.0_to_2.1.0.php                                       |  3 +++
 sql/updates/pgsql_2.0.0_to_2.1.0.php                                       |  5 ++++-
 27 files changed, 55 insertions(+), 23 deletions(-)

diffs (truncated from 363 to 300 lines):

diff -r 944e16f996b9 -r 8fbc3b1623e8 language/english.php
--- a/language/english.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/language/english.php	Thu Jan 09 20:24:48 2014 -0500
@@ -2128,6 +2128,7 @@
     'frame_options' => 'Protection against "clickjacking"',
     'page_navigation_max_pages' => 'Max Pages for Navigation',
     'default_cache_time_block' => 'Default Block Cache Time',
+    'titletoid' => 'Enable Title To Id?',
     'censormode' => "Censor Mode?",
     'censorreplace' => "Censor Replace Text",
     'censorlist' => "Censor List",
diff -r 944e16f996b9 -r 8fbc3b1623e8 language/english_utf-8.php
--- a/language/english_utf-8.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/language/english_utf-8.php	Thu Jan 09 20:24:48 2014 -0500
@@ -2128,6 +2128,7 @@
     'frame_options' => 'Protection against "clickjacking"',
     'page_navigation_max_pages' => 'Max Pages for Navigation',
     'default_cache_time_block' => 'Default Block Cache Time',
+    'titletoid' => 'Enable Title To Id?',
     'censormode' => "Censor Mode?",
     'censorreplace' => "Censor Replace Text",
     'censorlist' => "Censor List",
diff -r 944e16f996b9 -r 8fbc3b1623e8 plugins/staticpages/templates/admin/editor.thtml
--- a/plugins/staticpages/templates/admin/editor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/plugins/staticpages/templates/admin/editor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -5,7 +5,7 @@
     <div class="admin_basic">
       <dl class="form_block">
         <dt><label for="sp-editor-sp_title">{lang_title}</label></dt>
-        <dd><input type="text" maxlength="128" onkeyup="TitleToId('sp-editor-sp_title','sp-editor-sp_id');" name="sp_title" value="{sp_title}" id="sp-editor-sp_title" class="size5"{xhtml}></dd>
+        <dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('sp-editor-sp_title','sp-editor-sp_id');" {!endif}name="sp_title" value="{sp_title}" id="sp-editor-sp_title" class="size5"{xhtml}></dd>
 
         <dt><label for="sp-editor-sp_id">{lang_id}</label></dt>
         <dd><input type="text" dir="ltr" name="sp_id" maxlength="128" value="{sp_id}" id="sp-editor-sp_id" class="size5"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 plugins/staticpages/templates/admin/editor_advanced.thtml
--- a/plugins/staticpages/templates/admin/editor_advanced.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/plugins/staticpages/templates/admin/editor_advanced.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -7,7 +7,7 @@
     <div class="admin_basic">
       <dl class="form_block">
         <dt><label for="sp-advanced_editor-sp_title">{lang_title}</label></dt>
-        <dd><input type="text" maxlength="128" onkeyup="TitleToId('sp-advanced_editor-sp_title','sp-advanced_editor-sp_id');" name="sp_title" value="{sp_title}" id="sp-advanced_editor-sp_title" class="size5"{xhtml}></dd>
+        <dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('sp-advanced_editor-sp_title','sp-advanced_editor-sp_id');" {!endif}name="sp_title" value="{sp_title}" id="sp-advanced_editor-sp_title" class="size5"{xhtml}></dd>
         
         <dt><label for="sp-advanced_editor-sp_id">{lang_id}</label></dt>
         <dd><input type="text" dir="ltr" name="sp_id" maxlength="128" value="{sp_id}" id="sp-advanced_editor-sp_id" class="size5"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/admin/configuration_validation.php
--- a/public_html/admin/configuration_validation.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/admin/configuration_validation.php	Thu Jan 09 20:24:48 2014 -0500
@@ -501,6 +501,7 @@
                  $LANG_VALIDATION['page_navigation_max_pages'] : $LANG_VALIDATION['default']
 );
 $_CONF_VALIDATE['Core']['default_cache_time_block'] = array('rule' => 'numeric');
+$_CONF_VALIDATE['Core']['titletoid'] = array('rule' => 'boolean');
 
 /* Subgroup Misc, Tab Debug */
 $_CONF_VALIDATE['Core']['rootdebug'] = array('rule' => 'boolean');
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/admin/install/config-install.php
--- a/public_html/admin/install/config-install.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/admin/install/config-install.php	Thu Jan 09 20:24:48 2014 -0500
@@ -409,6 +409,7 @@
     $c->add('frame_options','DENY','select',7,31,22,1758,TRUE, $me, 31);
     $c->add('page_navigation_max_pages',7,'text',7,31,NULL,1800,TRUE, $me, 31);
     $c->add('default_cache_time_block',0,'text',7,31,NULL,1810,TRUE, $me, 31);
+    $c->add('titletoid',0,'select',7,31,1,1820,TRUE, $me, 31);
 
     $c->add('tab_debug', NULL, 'tab', 7, 32, NULL, 0, TRUE, $me, 32);
     $c->add('fs_debug', NULL, 'fieldset', 7, 32, NULL, 0, TRUE, $me, 32);
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/admin/plugins/staticpages/index.php	Thu Jan 09 20:24:48 2014 -0500
@@ -90,9 +90,6 @@
     }
     $retval = '';
     
-    // Add JavaScript
-    $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');    
-
     $sp_template = COM_newTemplate($template_path);
     if ($_CONF['advanced_editor'] && $_USER['advanced_editor']) {
         $sp_template->set_file('form', 'editor_advanced.thtml');
@@ -140,6 +137,12 @@
     } else {
         $sp_template->set_file('form', 'editor.thtml');
     }
+    
+    // Add JavaScript
+    if ($_CONF['titletoid']) {
+        $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');
+        $sp_template->set_var('titletoid', true);
+    }
 
     $sp_template->set_var('lang_mode', $LANG24[3]);
     $sp_template->set_var('comment_options',
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/admin/story.php
--- a/public_html/admin/story.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/admin/story.php	Thu Jan 09 20:24:48 2014 -0500
@@ -734,7 +734,10 @@
 
     // Add JavaScript
     $_SCRIPTS->setJavaScriptFile('story_editor', '/javascript/story_editor.js');
-    $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');
+    if ($_CONF['titletoid']) {
+        $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');
+        $story_templates->set_var('titletoid', true);
+    }     
 
     // Loads jQuery UI datepicker
     $_SCRIPTS->setJavaScriptLibrary('jquery.ui.datepicker');
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/admin/topic.php
--- a/public_html/admin/topic.php	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/admin/topic.php	Thu Jan 09 20:24:48 2014 -0500
@@ -103,8 +103,6 @@
             return $retval;
         }
     }
-
-    $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');
     
     $token = SEC_createToken();
 
@@ -136,6 +134,10 @@
                                   sprintf($delbutton, ''));
         $topic_templates->set_var('warning_msg', $LANG27[6]);
     }
+    if ($_CONF['titletoid']) {
+        $_SCRIPTS->setJavaScriptFile('title_2_id', '/javascript/title_2_id.js');
+        $topic_templates->set_var('titletoid', true);
+    }    
     $topic_templates->set_var('lang_topicid', $LANG27[2]);
     $topic_templates->set_var('topic_id', $A['tid']);
     
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/docs/english/config.html
--- a/public_html/docs/english/config.html	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/docs/english/config.html	Thu Jan 09 20:24:48 2014 -0500
@@ -1665,6 +1665,11 @@
         <li>0 = Not cached. Block is always regenerated.</li>
         <li>-1 = Always cached and only regenerated when the block is updated and saved through the block editor.</li>
     </ul></td></tr>  
+<tr>
+  <td valign="top"><a name="desc_titletoid">titletoid</a></td>
+  <td valign="top">false</td>
+  <td valign="top">Whether or not to automatically create an id based on the title. This is used by the Article, Topic and Staticpage 
+  Editors (and other plugins that support it) and it automatically updates the id field when the user types in a Title.</td></tr>    
 </table>
 
 <h3><a name="misc_debug">Miscellaneous: Debug</a></h3>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/docs/english/theme.html
--- a/public_html/docs/english/theme.html	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/docs/english/theme.html	Thu Jan 09 20:24:48 2014 -0500
@@ -226,8 +226,9 @@
 <li>Moved all images from <tt>/navbar/images/</tt> to <tt>/images/navbar/</tt> and updated required css files (different for each theme). Removed unused images for navbar from Denim and Modern Curve themes.</li>
 <li>Updated <tt>/admin/blocks/blockeditor.thtml</tt> and added in cache_time labels and input for all themes.</li>
 <li>Updated <tt>/admin/common/edit_topics.thtml</tt> so it can use jQuery (by adding ids to a number of elements) for all themes.</li>
-<li>Added <tt>/admin/envcheck.thtml</tt> and related css for ne Enviroment Check Admin page.</li>
+<li>Added <tt>/admin/envcheck.thtml</tt> and related css for the Enviroment Check Admin page.</li>
 <li>Updated <tt>/admin/topic/storyeditor.thtml</tt>, <tt>/admin/topic/storyeditor_advanced.thtml</tt> and <tt>/admin/topic/topiceditor.thtml</tt>. Ids can now be upto 128 characters long so changed max length (for Topic Name as well). Also added javascript which runs topic_2_id.js which converts titles to nice looking ids.</li>
+<li>Added the template variable {titletoid} to the story editor, topic editor and staticpage editor template files. It enables/disables the use of javascript to automatic update the ids when the title is changed.</li>
 </ul>
 
 <h2><a name="changes">Theme changes in Geeklog 2.0.0</a></h2>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/docs/japanese/config.html
--- a/public_html/docs/japanese/config.html	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/docs/japanese/config.html	Thu Jan 09 20:24:48 2014 -0500
@@ -1412,7 +1412,12 @@
         <li>1 or more = Amount of seconds a block will be cached before it is regenerated and saved again to a new cache file.</li>
         <li>0 = Not cached. Block is always regenerated.</li>
         <li>-1 = Always cached and only regenerated when the block is updated and saved through the block editor.</li>
-    </ul></td></tr>   
+    </ul></td></tr>
+<tr>
+  <td valign="top"><a name="desc_titletoid">titletoid</a></td>
+  <td valign="top">false</td>
+  <td valign="top">Whether or not to automatically create an id based on the title. This is used by the Article, Topic and Staticpage 
+  Editors (and other plugins that support it) and it automatically updates the id field when the user types in a Title.</td></tr>       
 </table>
 
 <h3><a name="misc_debug">その他: デバッグ</a></h3>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/denim/admin/story/storyeditor.thtml
--- a/public_html/layout/denim/admin/story/storyeditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/denim/admin/story/storyeditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -34,7 +34,7 @@
       <dd class="description">{publish_date_explanation}</dd>
 
       <dt><label for="admin-storyeditor-title">{lang_title}</label></dt>
-      <dd><input type="text" maxlength="128" onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" value="{story_title}" name="title" id="admin-storyeditor-title" class="size6"{xhtml}></dd>
+      <dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor-title" class="size6"{xhtml}></dd>
 
       <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
       <dd><input type="text" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="size6"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/denim/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/denim/admin/story/storyeditor_advanced.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/denim/admin/story/storyeditor_advanced.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -13,7 +13,7 @@
       <dd>{story_author}</dd>
 
       <dt><label for="admin-storyeditor_advanced-title">{lang_title}</label></dt>
-      <dd><input type="text" maxlength="128" onkeyup="TitleToId('admin-storyeditor_advanced-title','admin-storyeditor_advanced-sid');" value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="size6"{xhtml}></dd>
+      <dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor_advanced-title','admin-storyeditor_advanced-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="size6"{xhtml}></dd>
 
       <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
       <dd><input type="text" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="size6"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/denim/admin/topic/topiceditor.thtml
--- a/public_html/layout/denim/admin/topic/topiceditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/denim/admin/topic/topiceditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -5,7 +5,7 @@
   <div class="admin_basic">
     <dl class="form_block">
       <dt><label for="admin-topiceditor-topic">{lang_topicname}</label></dt>
-      <dd><input type="text" maxlength="128" onkeyup="TitleToId('admin-topiceditor-topic','admin-topiceditor-tid');" value="{topic_name}" name="topic_name" id="admin-topiceditor-topic" class="size5"{xhtml}></dd>
+      <dd><input type="text" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-topiceditor-topic','admin-topiceditor-tid');" {!endif}value="{topic_name}" name="topic_name" id="admin-topiceditor-topic" class="size5"{xhtml}></dd>
 
       <dt><label for="admin-topiceditor-tid">{lang_topicid}</label></dt>
       <dd><input type="text" maxlength="128" value="{topic_id}" name="tid" id="admin-topiceditor-tid" class="size5"{xhtml}> {lang_donotusespaces}</dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/modern_curve/admin/story/storyeditor.thtml
--- a/public_html/layout/modern_curve/admin/story/storyeditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/modern_curve/admin/story/storyeditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -34,7 +34,7 @@
       <dd class="description">{publish_date_explanation}</dd>
 
       <dt><label for="admin-storyeditor-title">{lang_title}</label></dt>
-      <dd><input type="text" size="48" maxlength="128" onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" value="{story_title}" name="title" id="admin-storyeditor-title" class="text"{xhtml}></dd>
+      <dd><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor-title" class="text"{xhtml}></dd>
 
       <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
       <dd><input type="text" size="48" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="text"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -13,7 +13,7 @@
       <dd>{story_author}</dd>
 
       <dt><label for="admin-storyeditor_advanced-title">{lang_title}</label></dt>
-      <dd><input type="text" size="48" maxlength="128" onkeyup="TitleToId('admin-storyeditor_advanced-title','admin-storyeditor_advanced-sid');" value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="text"{xhtml}></dd>
+      <dd><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor_advanced-title','admin-storyeditor_advanced-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="text"{xhtml}></dd>
 
       <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
       <dd><input type="text" size="48" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="text"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/modern_curve/admin/topic/topiceditor.thtml
--- a/public_html/layout/modern_curve/admin/topic/topiceditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/modern_curve/admin/topic/topiceditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -5,7 +5,7 @@
   <div class="admin_basic">
     <dl>
       <dt><label for="admin-topiceditor-topic">{lang_topicname}</label></dt>
-      <dd><input type="text" size="48" maxlength="128" onkeyup="TitleToId('admin-topiceditor-topic','admin-topiceditor-tid');" value="{topic_name}" name="topic_name" id="admin-topiceditor-topic" class="text"{xhtml}></dd>
+      <dd><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-topiceditor-topic','admin-topiceditor-tid');" {!endif}value="{topic_name}" name="topic_name" id="admin-topiceditor-topic" class="text"{xhtml}></dd>
       
       <dt><label for="admin-topiceditor-tid">{lang_topicid}</label></dt>
       <dd><input type="text" size="48" maxlength="128" value="{topic_id}" name="tid" id="admin-topiceditor-tid" class="text"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/professional/admin/story/storyeditor.thtml
--- a/public_html/layout/professional/admin/story/storyeditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/professional/admin/story/storyeditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -36,7 +36,7 @@
                                     </tr>
                                     <tr>
                                         <td class="alignright">{lang_title}:</td>
-                                        <td><input type="text" size="48" maxlength="128" onkeyup="TitleToId();" value="{story_title}" id="title" name="title"{xhtml}></td>
+                                        <td><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId();" {!endif}value="{story_title}" id="title" name="title"{xhtml}></td>
                                     </tr>
                                     <tr>
                                         <td class="alignright">{lang_page_title}:</td>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/professional/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/professional/admin/story/storyeditor_advanced.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/professional/admin/story/storyeditor_advanced.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -11,7 +11,7 @@
             </tr>
             <tr>
                 <td class="alignright">{lang_title}:</td>
-                <td><input type="text" size="48" maxlength="128" onkeyup="TitleToId();" id="title" name="title" value="{story_title}"{xhtml}></td>
+                <td><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId();" {!endif}id="title" name="title" value="{story_title}"{xhtml}></td>
             </tr>
             <tr>
                 <td class="alignright">{lang_page_title}:</td>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/professional/admin/topic/topiceditor.thtml
--- a/public_html/layout/professional/admin/topic/topiceditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/professional/admin/topic/topiceditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -4,7 +4,7 @@
                                 <table cellspacing="0" cellpadding="2" width="100%">
                                     <tr>
                                         <td class="alignright">{lang_topicname}:</td>
-                                        <td><input type="text" size="48" maxlength="128" onkeyup="TitleToId();" id="title" name="topic_name" value="{topic_name}"{xhtml}></td>
+                                        <td><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId();" {!endif}id="title" name="topic_name" value="{topic_name}"{xhtml}></td>
                                     </tr>                                
                                     <tr>
                                         <td class="alignright">{lang_topicid}:</td>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/professional_css/admin/story/storyeditor.thtml
--- a/public_html/layout/professional_css/admin/story/storyeditor.thtml	Wed Jan 08 21:02:09 2014 -0500
+++ b/public_html/layout/professional_css/admin/story/storyeditor.thtml	Thu Jan 09 20:24:48 2014 -0500
@@ -34,7 +34,7 @@
       <dd class="description">{publish_date_explanation}</dd>
 
       <dt><label for="admin-storyeditor-title">{lang_title}</label></dt>
-      <dd><input type="text" size="48" maxlength="128" onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" value="{story_title}" name="title" id="admin-storyeditor-title" class="text"{xhtml}></dd>
+      <dd><input type="text" size="48" maxlength="128" {!if titletoid}onkeyup="TitleToId('admin-storyeditor-title','admin-storyeditor-sid');" {!endif}value="{story_title}" name="title" id="admin-storyeditor-title" class="text"{xhtml}></dd>
 
       <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
       <dd><input type="text" size="48" maxlength="128" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="text"{xhtml}></dd>
diff -r 944e16f996b9 -r 8fbc3b1623e8 public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml	Wed Jan 08 21:02:09 2014 -0500



More information about the geeklog-cvs mailing list