[geeklog-hg] geeklog: Fixed incorrect element id
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Aug 3 12:05:32 EDT 2013
changeset 9244:ab882ff21bff
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ab882ff21bff
user: dengen <taharaxp at gmail.com>
date: Sun Aug 04 01:04:54 2013 +0900
description:
Fixed incorrect element id
diffstat:
public_html/javascript/staticpages_adveditor.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 6a40157f2db0 -r ab882ff21bff public_html/javascript/staticpages_adveditor.js
--- a/public_html/javascript/staticpages_adveditor.js Sun Aug 04 00:01:16 2013 +0900
+++ b/public_html/javascript/staticpages_adveditor.js Sun Aug 04 01:04:54 2013 +0900
@@ -33,12 +33,12 @@
bar = 0;
}
document.getElementById('advanced_editor').style.display = '';
- adve_newEditor('sp_content', {'toolbar':bar});
+ adve_newEditor('adv_content', {'toolbar':bar});
document.getElementById('fckeditor_toolbar_selector').options[bar].selected = true;
}
function changeToolbar(toolbar) {
- adve_changeToolbar('sp_content', toolbar);
+ adve_changeToolbar('adv_content', toolbar);
}
function change_editmode(obj) {
@@ -58,14 +58,14 @@
function swapEditorContent(curmode) {
if (curmode == 'advanced') {
var content = document.getElementById('html_content').value;
- adve_setContent('sp_content', content);
+ adve_setContent('adv_content', content);
} else {
- document.getElementById('html_content').value = adve_getContent('sp_content');
+ document.getElementById('html_content').value = adve_getContent('adv_content');
}
}
function set_postcontent() {
if (document.getElementById('sel_editmode').value == 'adveditor') {
- document.getElementById('html_content').value = adve_getContent('sp_content');
+ document.getElementById('html_content').value = adve_getContent('adv_content');
}
}
More information about the geeklog-cvs
mailing list