[geeklog-hg] geeklog: Moved a JavaScript file to give Static Pages Plugin gre...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Mon Aug 12 23:35:23 EDT 2013


changeset 9251:57be61267678
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/57be61267678
user: dengen <taharaxp at gmail.com>
date: Tue Aug 13 12:34:51 2013 +0900
description:
Moved a JavaScript file to give Static Pages Plugin greater independence.

diffstat:

 public_html/admin/plugins/staticpages/index.php |   2 +-
 public_html/javascript/staticpages_adveditor.js |  51 -------------------------
 public_html/staticpages/adveditor.js            |  51 +++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 52 deletions(-)

diffs (122 lines):

diff -r 425249263f96 -r 57be61267678 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php	Tue Aug 13 12:02:45 2013 +0900
+++ b/public_html/admin/plugins/staticpages/index.php	Tue Aug 13 12:34:51 2013 +0900
@@ -103,7 +103,7 @@
         $sp_template->set_var('noscript', COM_getNoScript(false, '', $link_message));        
         
         // Setup Advanced Editor
-        COM_setupAdvancedEditor('/javascript/staticpages_adveditor.js');
+        COM_setupAdvancedEditor('/staticpages/adveditor.js');
         
         $sp_template->set_var('lang_expandhelp', $LANG24[67]);
         $sp_template->set_var('lang_reducehelp', $LANG24[68]);
diff -r 425249263f96 -r 57be61267678 public_html/javascript/staticpages_adveditor.js
--- a/public_html/javascript/staticpages_adveditor.js	Tue Aug 13 12:02:45 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-/* Reminder: always indent with 4 spaces (no tabs). */
-// +---------------------------------------------------------------------------+
-// | Geeklog 2.0                                                               |
-// +---------------------------------------------------------------------------+
-// | Javascript functions for WYSIWYG HTML Editor Integration into Geeklog     |
-// |                                                                           |
-// +---------------------------------------------------------------------------+
-// | Copyright (C) 2003-2013 by the following authors:                         |
-// |                                                                           |
-// | Authors:   Blaine Lang       - blaine AT portalparts DOT com              |
-// |            Yoshinori Tahara  - dengenxp AT gmail DOT com                  |
-// +---------------------------------------------------------------------------+
-// |                                                                           |
-// | This program is free software; you can redistribute it and/or             |
-// | modify it under the terms of the GNU General Public License               |
-// | as published by the Free Software Foundation; either version 2            |
-// | of the License, or (at your option) any later version.                    |
-// |                                                                           |
-// | This program is distributed in the hope that it will be useful,           |
-// | but WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
-// | GNU General Public License for more details.                              |
-// |                                                                           |
-// | You should have received a copy of the GNU General Public License         |
-// | along with this program; if not, write to the Free Software Foundation,   |
-// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
-// |                                                                           |
-// +---------------------------------------------------------------------------+
-
-window.onload = function() {
-    AdvancedEditor.newEditor({
-        TextareaId:[
-            {plain:'html_content', advanced:'adv_content'}
-        ],
-        toolbar:1
-    });
-}
-
-// Override event listener
-AdvancedEditor.onchange_editmode = function() {
-    if (AdvancedEditor.isAdvancedMode()) {
-        document.getElementById('advanced_editarea').style.display = '';
-        document.getElementById('sel_toolbar').style.display = '';
-        document.getElementById('html_editarea').style.display = 'none';
-    } else {
-        document.getElementById('advanced_editarea').style.display = 'none';
-        document.getElementById('sel_toolbar').style.display = 'none';
-        document.getElementById('html_editarea').style.display = '';
-    }
-    AdvancedEditor.swapEditorContent();
-}
diff -r 425249263f96 -r 57be61267678 public_html/staticpages/adveditor.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/public_html/staticpages/adveditor.js	Tue Aug 13 12:34:51 2013 +0900
@@ -0,0 +1,51 @@
+/* Reminder: always indent with 4 spaces (no tabs). */
+// +---------------------------------------------------------------------------+
+// | Geeklog 2.0                                                               |
+// +---------------------------------------------------------------------------+
+// | Javascript functions for WYSIWYG HTML Editor Integration into Geeklog     |
+// |                                                                           |
+// +---------------------------------------------------------------------------+
+// | Copyright (C) 2003-2013 by the following authors:                         |
+// |                                                                           |
+// | Authors:   Blaine Lang       - blaine AT portalparts DOT com              |
+// |            Yoshinori Tahara  - dengenxp AT gmail DOT com                  |
+// +---------------------------------------------------------------------------+
+// |                                                                           |
+// | This program is free software; you can redistribute it and/or             |
+// | modify it under the terms of the GNU General Public License               |
+// | as published by the Free Software Foundation; either version 2            |
+// | of the License, or (at your option) any later version.                    |
+// |                                                                           |
+// | This program is distributed in the hope that it will be useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
+// | GNU General Public License for more details.                              |
+// |                                                                           |
+// | You should have received a copy of the GNU General Public License         |
+// | along with this program; if not, write to the Free Software Foundation,   |
+// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
+// |                                                                           |
+// +---------------------------------------------------------------------------+
+
+window.onload = function() {
+    AdvancedEditor.newEditor({
+        TextareaId:[
+            {plain:'html_content', advanced:'adv_content'}
+        ],
+        toolbar:1
+    });
+}
+
+// Override event listener
+AdvancedEditor.onchange_editmode = function() {
+    if (AdvancedEditor.isAdvancedMode()) {
+        document.getElementById('advanced_editarea').style.display = '';
+        document.getElementById('sel_toolbar').style.display = '';
+        document.getElementById('html_editarea').style.display = 'none';
+    } else {
+        document.getElementById('advanced_editarea').style.display = 'none';
+        document.getElementById('sel_toolbar').style.display = 'none';
+        document.getElementById('html_editarea').style.display = '';
+    }
+    AdvancedEditor.swapEditorContent();
+}



More information about the geeklog-cvs mailing list