Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-07-28 00:16:27 +0300
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-07-28 00:16:27 +0300
commit91d985cbf7773ca6707f360032ff50fcc24586ca (patch)
tree54247f56033d3050df00d906b8ae6db7e55e3e85 /js
parente09ca4fa233dffeb0faec9a13a86f4dfefd8f946 (diff)
place editor inside of app-content
Diffstat (limited to 'js')
-rw-r--r--js/editor.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/editor.js b/js/editor.js
index b57e238..5c047c7 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -86,11 +86,11 @@ function showControls(dir, filename, writeable) {
}
function bindControlEvents() {
- $('#content').on('click', '#editor_save', doFileSave);
- $('#content').on('click', '#editor_close', hideFileEditor);
- $('#content').on('keyup', '#editorsearchval', doSearch);
- $('#content').on('click', '#clearsearchbtn', resetSearch);
- $('#content').on('click', '#nextsearchbtn', nextSearchResult);
+ $('#app-content').on('click', '#editor_save', doFileSave);
+ $('#app-content').on('click', '#editor_close', hideFileEditor);
+ $('#app-content').on('keyup', '#editorsearchval', doSearch);
+ $('#app-content').on('click', '#clearsearchbtn', resetSearch);
+ $('#app-content').on('click', '#nextsearchbtn', nextSearchResult);
}
// returns true or false if the editor is in view or not
@@ -213,7 +213,7 @@ function showFileEditor(dir, filename) {
}
$('#editor').remove();
// Loads the file editor and display it.
- $('#content').append('<div id="editor_container"><div id="editor"></div></div>');
+ $('#app-content').append('<div id="editor_container"><div id="editor"></div></div>');
// bigger text for better readability
document.getElementById('editor').style.fontSize = '16px';