[geeklog-hg] geeklog: Fixed JavaScript error in admin/story.php (bug #0001496)

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Oct 10 09:46:51 EDT 2012


changeset 8853:28ca5fb3ba94
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/28ca5fb3ba94
user: dengen
date: Wed Oct 10 22:45:29 2012 +0900
description:
Fixed JavaScript error in admin/story.php (bug #0001496)

diffstat:

 public_html/javascript/advanced_editor.js                                  |  11 ++++++++++
 public_html/layout/modern_curve/admin/story/storyeditor.thtml              |   2 +-
 public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml     |   2 +-
 public_html/layout/professional_css/admin/story/storyeditor.thtml          |   2 +-
 public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml |   2 +-
 5 files changed, 15 insertions(+), 4 deletions(-)

diffs (69 lines):

diff -r 26f0562f9c88 -r 28ca5fb3ba94 public_html/javascript/advanced_editor.js
--- a/public_html/javascript/advanced_editor.js	Thu Oct 04 11:33:30 2012 -0400
+++ b/public_html/javascript/advanced_editor.js	Wed Oct 10 22:45:29 2012 +0900
@@ -43,6 +43,17 @@
         f.elements["expire_ampm"].disabled=!disable;
     }
 
+    function enablecmtclose(obj) {
+        var f = obj.form;               // all elements have their parent form in "form"
+        var disable = obj.checked;      // Disable when checked
+        f.elements["cmt_close_month"].disabled=!disable;
+        f.elements["cmt_close_day"].disabled=!disable;
+        f.elements["cmt_close_year"].disabled=!disable;
+        f.elements["cmt_close_hour"].disabled=!disable;
+        f.elements["cmt_close_minute"].disabled=!disable;
+        f.elements["cmt_close_ampm"].disabled=!disable;
+    }
+
     function showhideEditorDiv(option,selindex) {
         var obj = document.getElementById('adveditor');
         var divarray = new Array('publish','images','archive','perms','options','bottom');
diff -r 26f0562f9c88 -r 28ca5fb3ba94 public_html/layout/modern_curve/admin/story/storyeditor.thtml
--- a/public_html/layout/modern_curve/admin/story/storyeditor.thtml	Thu Oct 04 11:33:30 2012 -0400
+++ b/public_html/layout/modern_curve/admin/story/storyeditor.thtml	Wed Oct 10 22:45:29 2012 +0900
@@ -1,7 +1,7 @@
 
 <!-- admin/story/storyeditor.thtml { -->
 
-<form action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" id="admin-storyeditor" class="compact">
+<form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" id="admin-storyeditor" class="compact">
 
   <div class="admin_basic">
     <dl>
diff -r 26f0562f9c88 -r 28ca5fb3ba94 public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml	Thu Oct 04 11:33:30 2012 -0400
+++ b/public_html/layout/modern_curve/admin/story/storyeditor_advanced.thtml	Wed Oct 10 22:45:29 2012 +0900
@@ -6,7 +6,7 @@
 <div id="advanced_editor" style="display: none;">
 {navbar}
 
-<form action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onsubmit="set_postcontent();" id="admin-storyeditor_advanced" class="compact">
+<form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onsubmit="set_postcontent();" id="admin-storyeditor_advanced" class="compact">
 
   <div class="admin_basic">
     <dl>
diff -r 26f0562f9c88 -r 28ca5fb3ba94 public_html/layout/professional_css/admin/story/storyeditor.thtml
--- a/public_html/layout/professional_css/admin/story/storyeditor.thtml	Thu Oct 04 11:33:30 2012 -0400
+++ b/public_html/layout/professional_css/admin/story/storyeditor.thtml	Wed Oct 10 22:45:29 2012 +0900
@@ -1,7 +1,7 @@
 
 <!-- admin/story/storyeditor.thtml { -->
 
-<form action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" id="admin-storyeditor" class="compact">
+<form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" id="admin-storyeditor" class="compact">
 
   <div class="admin_basic">
     <dl>
diff -r 26f0562f9c88 -r 28ca5fb3ba94 public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml
--- a/public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml	Thu Oct 04 11:33:30 2012 -0400
+++ b/public_html/layout/professional_css/admin/story/storyeditor_advanced.thtml	Wed Oct 10 22:45:29 2012 +0900
@@ -6,7 +6,7 @@
 <div id="advanced_editor" style="display: none;">
 {navbar}
 
-<form action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onsubmit="set_postcontent();" id="admin-storyeditor_advanced" class="compact">
+<form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onsubmit="set_postcontent();" id="admin-storyeditor_advanced" class="compact">
 
   <div class="admin_basic">
     <dl>



More information about the geeklog-cvs mailing list