You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2009/03/26 16:16:34 UTC
svn commit: r758675 -
/lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js
Author: andreas
Date: Thu Mar 26 15:16:23 2009
New Revision: 758675
URL: http://svn.apache.org/viewvc?rev=758675&view=rev
Log:
Removing browser check (see https://issues.apache.org/bugzilla/show_bug.cgi?id=46850), doen't seem to be necessary.
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js
Modified: lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js?rev=758675&r1=758674&r2=758675&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/editors/resources/javascript/sourceEditor/codemirror.js Thu Mar 26 15:16:23 2009
@@ -17,11 +17,6 @@
var editor;
-function isBrowser(name){
- var agent = navigator.userAgent.toLowerCase();
- return agent.indexOf(name.toLowerCase()) > -1;
-}
-
function insertEditor() {
editor = CodeMirror.fromTextArea('editorContent', {
path: WEBAPP_BASE_URI + "modules/editors/codemirror/0.60/js/",
@@ -33,12 +28,7 @@
}
function saveContent() {
- if (isBrowser("Firefox") || isBrowser("MSIE")) {
- document.forms.oneform.content.value = editor.getCode();
- } else {
- document.forms.oneform.content.innerHTML = editor.getCode();
- }
-
+ document.forms.oneform.content.value = editor.getCode();
document.getElementById("save1").disabled = null;
document.getElementById("save2").disabled = null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org