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
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-09-12 14:35:11 +0400
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-09-12 14:35:11 +0400
commit65b786c4b15245231ec2c52009142a08f93f7b4f (patch)
tree0f86f16d49844df430665136b92c5ca36464fc0f
parentf79d2ef76b0ba677ee949a36e10c9662fee0f017 (diff)
text editor: move close button to right, remove separators
-rw-r--r--css/style.css6
-rw-r--r--js/editor.js6
2 files changed, 9 insertions, 3 deletions
diff --git a/css/style.css b/css/style.css
index ad0059d..0391d36 100644
--- a/css/style.css
+++ b/css/style.css
@@ -21,5 +21,11 @@
#editor_save {
margin-left: 7px;
+ margin-right: 20px;
float: left;
}
+
+#editor_close {
+ float: right;
+ margin-right: 9px;
+}
diff --git a/js/editor.js b/js/editor.js
index dd77dfe..241270a 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -65,11 +65,11 @@ function showControls(dir, filename, writeable) {
// Load the new toolbar.
var editorbarhtml = '<div id="editorcontrols" style="display: none;">';
if (writeable) {
- editorbarhtml += '<button id="editor_save">' + t('files_texteditor', 'Save') + '</button><div class="separator"></div>';
+ editorbarhtml += '<button id="editor_save">' + t('files_texteditor', 'Save') + '</button>';
}
- editorbarhtml += '<label for="editorseachval">' + t('files_texteditor', 'Search:');
+ editorbarhtml += '<label for="editorseachval">' + t('files_texteditor', 'Search');
editorbarhtml += '</label><input type="text" name="editorsearchval" id="editorsearchval">';
- editorbarhtml += '<div class="separator"></div><button id="editor_close">';
+ editorbarhtml += '<button id="editor_close">';
editorbarhtml += t('files_texteditor', 'Close') + '</button></div>';
$('#controls').append(editorbarhtml);