[geeklog-hg] geeklog: Removed javascript files not to use anymore

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Aug 3 11:04:36 EDT 2013


changeset 9242:9ab74f6c4a6a
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/9ab74f6c4a6a
user: dengen <taharaxp at gmail.com>
date: Sat Aug 03 21:46:29 2013 +0900
description:
Removed javascript files not to use anymore

diffstat:

 public_html/javascript/staticpages_fckeditor.js   |   84 ------------
 public_html/javascript/storyeditor_fckeditor.js   |  143 ----------------------
 public_html/javascript/submitcomment_fckeditor.js |   73 -----------
 public_html/javascript/submitstory_fckeditor.js   |   75 -----------
 4 files changed, 0 insertions(+), 375 deletions(-)

diffs (truncated from 391 to 300 lines):

diff -r 3bb5c8dfc471 -r 9ab74f6c4a6a public_html/javascript/staticpages_fckeditor.js
--- a/public_html/javascript/staticpages_fckeditor.js	Sat Aug 03 21:39:11 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,84 +0,0 @@
-/* Reminder: always indent with 4 spaces (no tabs). */
-// +---------------------------------------------------------------------------+
-// | Geeklog 1.6                                                               |
-// +---------------------------------------------------------------------------+
-// | Copyright (C) 2003-2009 by the following authors:                         |
-// | Version 1.0    Date: Jun 4, 2005                                          |
-// | Authors:   Blaine Lang - blaine at portalparts.com                           |
-// |                                                                           |
-// | Javascript functions for FCKEditor Integration into Geeklog               |
-// |                                                                           |
-// +---------------------------------------------------------------------------+
-// |                                                                           |
-// | 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() {
-        var bar = 1;
-        if (navigator.userAgent.match(/iPhone|Android|IEMobile/i)) {
-            bar = 0;
-        }
-
-        var oFCKeditor1 = new FCKeditor( 'sp_content' ) ;
-        oFCKeditor1.BasePath = geeklogEditorBasePath;
-        oFCKeditor1.Config['CustomConfigurationsPath'] = geeklogEditorBaseUrl + '/fckeditor/myconfig.js';
-        oFCKeditor1.ToolbarSet = 'editor-toolbar' + (bar + 1) ;
-        oFCKeditor1.Height = 400 ;
-        oFCKeditor1.AutoGrowMax = 1200        
-        oFCKeditor1.ReplaceTextarea() ;
-
-        document.getElementById('fckeditor_toolbar_selector').options[bar].selected = true;
-    }
-
-   function changeToolbar(toolbar) {
-        var oEditor1 = FCKeditorAPI.GetInstance('sp_content');       
-        oEditor1.ToolbarSet.Load( toolbar ) ;
-   }
-   
-    function change_editmode(obj) {
-        if (obj.value == 'adveditor') {
-            document.getElementById('advanced_editarea').style.display='';
-            document.getElementById('sel_toolbar').style.display='';             
-            document.getElementById('html_editarea').style.display='none';
-            swapEditorContent('advanced');
-        } else {
-            document.getElementById('advanced_editarea').style.display='none';
-            document.getElementById('sel_toolbar').style.display='none';             
-            document.getElementById('html_editarea').style.display='';
-            swapEditorContent('html');
-        }
-    } 
-
-    function swapEditorContent(curmode) {
-        var content = '';
-        var oEditor = FCKeditorAPI.GetInstance('sp_content');
-        if (curmode == 'advanced') {
-            content = document.getElementById('html_content').value;
-            oEditor.SetHTML(content);
-        } else {
-            content = oEditor.GetXHTML( true );
-            document.getElementById('html_content').value = content;         
-       }
-    }
-    
-    function set_postcontent() { 
-        if (document.getElementById('sel_editmode').value == 'adveditor') {
-            var oEditor = FCKeditorAPI.GetInstance('sp_content');        
-            content = oEditor.GetXHTML( true );        
-            document.getElementById('html_content').value = content;
-        }
-    }          
diff -r 3bb5c8dfc471 -r 9ab74f6c4a6a public_html/javascript/storyeditor_fckeditor.js
--- a/public_html/javascript/storyeditor_fckeditor.js	Sat Aug 03 21:39:11 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,143 +0,0 @@
-/* Reminder: always indent with 4 spaces (no tabs). */
-// +---------------------------------------------------------------------------+
-// | Geeklog 1.6                                                               |
-// +---------------------------------------------------------------------------+
-// | Copyright (C) 2003-2009 by the following authors:                         |
-// | Version 1.1    Date: Jun 4, 2006                                          |
-// | Authors:   Blaine Lang - blaine at portalparts.com                           |
-// |                                                                           |
-// | Javascript functions for FCKEditor Integration into Geeklog               |
-// |                                                                           |
-// +---------------------------------------------------------------------------+
-// |                                                                           |
-// | 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() {
-        var bar = 1;
-        if (navigator.userAgent.match(/iPhone|Android|IEMobile/i)) {
-            bar = 0;
-        }
-
-        var oFCKeditor1 = new FCKeditor( 'introhtml' ) ;
-        oFCKeditor1.BasePath = geeklogEditorBasePath;
-        oFCKeditor1.Config['CustomConfigurationsPath'] = geeklogEditorBaseUrl + '/fckeditor/myconfig.js';
-        oFCKeditor1.ToolbarSet = 'editor-toolbar' + (bar + 1) ;
-        oFCKeditor1.Height = 200 ;
-        oFCKeditor1.ReplaceTextarea() ;
-
-        var oFCKeditor2 = new FCKeditor( 'bodyhtml' ) ;
-        oFCKeditor2.BasePath = geeklogEditorBasePath ;
-        oFCKeditor2.Config['CustomConfigurationsPath'] = geeklogEditorBaseUrl + '/fckeditor/myconfig.js';
-        oFCKeditor2.ToolbarSet = 'editor-toolbar' + (bar + 1) ;
-        oFCKeditor2.Height = 200 ;
-        oFCKeditor2.ReplaceTextarea() ;
-
-        document.getElementById('fckeditor_toolbar_selector').options[bar].selected = true;
-    }
-
-    function change_editmode(obj) {
-        var navlistcount = document.getElementById('navlist').getElementsByTagName('li').length;
-        showhideEditorDiv("editor", navlistcount - 6);
-        if (obj.value == 'html') {
-            document.getElementById('html_editor').style.display='none';
-            document.getElementById('text_editor').style.display='';
-            swapEditorContent('html','introhtml');
-            swapEditorContent('html','bodyhtml');
-        } else if (obj.value == 'adveditor') {
-            document.getElementById('text_editor').style.display='none';
-            document.getElementById('html_editor').style.display='';
-            swapEditorContent('adveditor','introhtml');
-            swapEditorContent('adveditor','bodyhtml');
-        } else {
-            document.getElementById('html_editor').style.display='none';
-            document.getElementById('text_editor').style.display='';
-            swapEditorContent('text','introhtml');
-            swapEditorContent('text','bodyhtml');
-        }
-    }
-
-    function changeHTMLTextAreaSize(element, option) {
-        var currentSize = parseInt(document.getElementById(element + '___Frame').style.height);
-        if (option == 'larger') {
-            var newsize = currentSize + 50;
-        } else if (option == 'smaller') {
-            var newsize = currentSize - 50;
-        }
-        document.getElementById(element + '___Frame').style.height = newsize + 'px';
-    }
-
-    function changeTextAreaSize(element, option) {
-        var size = document.getElementById(element).rows;
-        if (option == 'larger') {
-            document.getElementById(element).rows = +(size) + 3;
-        } else if (option == 'smaller') {
-            document.getElementById(element).rows = +(size) - 3;
-        }
-    }
-
-
-    function getEditorContent(instanceName) {
-        // Get the editor instance that we want to interact with.
-        var oEditor = FCKeditorAPI.GetInstance(instanceName) ;
-        // return the editor contents in XHTML.
-        var content = '';
-        try {
-            content = oEditor.GetXHTML( true );
-        } catch (e) {}
-
-        return content;
-    }
-
-    function swapEditorContent(curmode,instanceName) {
-        var content = '';
-        var oEditor = FCKeditorAPI.GetInstance(instanceName);
-        if (curmode == 'adveditor') { // Switching from Text/HTML mode to AdvancedEditor Mode
-            // Get the content from the textarea 'text' content and copy it to the editor
-            if (instanceName == 'introhtml' )  {
-                content = document.getElementById('introtext').value;
-            } else {
-                content = document.getElementById('bodytext').value;
-            }
-            try {
-                oEditor.SetHTML(content);
-                } catch (e) {}
-
-        } else {
-              content = getEditorContent(instanceName);
-              if (content != '') {
-                  if (instanceName == 'introhtml' )  {
-                      document.getElementById('introtext').value = content;
-                  } else {
-                      document.getElementById('bodytext').value = content;
-                  }
-              }
-          }
-    }
-
-    function set_postcontent() {
-        if (document.getElementById('sel_editmode').value == 'adveditor') {
-            document.getElementById('introtext').value = getEditorContent('introhtml');
-            document.getElementById('bodytext').value = getEditorContent('bodyhtml');
-        }
-    }
-
-   function changeToolbar(toolbar) {
-        var oEditor1 = FCKeditorAPI.GetInstance('introhtml');
-        oEditor1.ToolbarSet.Load( toolbar ) ;
-        var oEditor2 = FCKeditorAPI.GetInstance('bodyhtml');
-        oEditor2.ToolbarSet.Load( toolbar ) ;
-   }
diff -r 3bb5c8dfc471 -r 9ab74f6c4a6a public_html/javascript/submitcomment_fckeditor.js
--- a/public_html/javascript/submitcomment_fckeditor.js	Sat Aug 03 21:39:11 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-/* Reminder: always indent with 4 spaces (no tabs). */
-// +---------------------------------------------------------------------------+
-// | Geeklog 1.6                                                               |
-// +---------------------------------------------------------------------------+
-// | Copyright (C) 2003-2009 by the following authors:                         |
-// | Version 1.0    Date: Jun 4, 2005                                          |
-// | Authors:   Blaine Lang - blaine at portalparts.com                           |
-// |                                                                           |
-// | Javascript functions for FCKEditor Integration into Geeklog               |
-// |                                                                           |
-// +---------------------------------------------------------------------------+
-// |                                                                           |
-// | 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() {
-        var oFCKeditor1 = new FCKeditor( 'comment_html' ) ;
-        oFCKeditor1.BasePath = geeklogEditorBasePath;
-        oFCKeditor1.Config['CustomConfigurationsPath'] = geeklogEditorBaseUrl + '/fckeditor/myconfig.js';
-        oFCKeditor1.ToolbarSet = 'editor-toolbar1' ;
-        oFCKeditor1.Height = 200 ;
-        oFCKeditor1.ReplaceTextarea() ;
-    }
-    function change_editmode(obj) {
-        if (obj.value == 'html') {
-            document.getElementById('text_editor').style.display='none';
-            document.getElementById('html_editor').style.display='';
-            swapEditorContent('html');
-        } else {
-            document.getElementById('text_editor').style.display='';
-            document.getElementById('html_editor').style.display='none';
-            swapEditorContent('text');
-        }
-    }
-
-    function getEditorContent() {
-        // Get the editor instance that we want to interact with.
-        var oEditor = FCKeditorAPI.GetInstance('comment_html') ;
-        // return the editor contents in XHTML.
-        return oEditor.GetXHTML( true );
-    }
-
-    function swapEditorContent(curmode) {
-        var content = '';
-        var oEditor = FCKeditorAPI.GetInstance('comment_html') ;
-        if (curmode == 'html') { // Switching from Text to HTML mode
-            // Get the content from the textarea 'text' content and copy it to the editor
-            content = document.getElementById('comment_text').value;



More information about the geeklog-cvs mailing list