diff --git a/changelog.txt b/changelog.txt index df4936d..91c0fe2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,7 @@ Version 0.0.8 (2017-02-nn) - Got rid of chroot workaround +- Added confirmation dialog before saving files +- Changes to toolbar with extended editor settings Version 0.0.7 (2017-02-01) - Inserted elements are selected as visual feedback diff --git a/configurator.py b/configurator.py index 1dea677..973ff4b 100755 --- a/configurator.py +++ b/configurator.py @@ -81,12 +81,12 @@ INDEX = Template(""" #toolbar { position: relative; - height: 20px; + height: 22px; } #editor { position: absolute; - top: 20px; + top: 22px; right: 0; bottom: 0; left: 20%; @@ -154,13 +154,8 @@ INDEX = Template("""
- - - - - - - + + $current
@@ -290,6 +285,10 @@ INDEX = Template(""" }); } + function save_dialog() { + $.modal("

Do you really want to save the changes?

 

", modaloptions); + } + function save() { var n = $("#tree").jstree("get_selected"); if (n) { @@ -314,6 +313,7 @@ INDEX = Template(""" editor.setOption("displayIndentGuides", true); editor.setOption("highlightSelectedWord", highlightwords); editor.$blockScrolling = Infinity; + //document.getElementById("acesettings").addEventListener('click', function(){editor.showSettingsMenu;}, false); function insert(text) { var pos = editor.selection.getCursor(); var end = editor.session.insert(pos, text); diff --git a/dev.html b/dev.html index a95a136..262953e 100644 --- a/dev.html +++ b/dev.html @@ -34,7 +34,7 @@ #toolbar { position: relative; - height: 20px; + height: 22px; } #editor { @@ -107,13 +107,12 @@
- - - - - - - + + + + + + $current
@@ -243,6 +242,10 @@ }); } + function save_dialog() { + $.modal("

Do you really want to save the changes?

 

", modaloptions); + } + function save() { var n = $("#tree").jstree("get_selected"); if (n) { @@ -267,6 +270,7 @@ editor.setOption("displayIndentGuides", true); editor.setOption("highlightSelectedWord", highlightwords); editor.$blockScrolling = Infinity; + //document.getElementById("acesettings").addEventListener('click', function(){editor.showSettingsMenu;}, false); function insert(text) { var pos = editor.selection.getCursor(); var end = editor.session.insert(pos, text); diff --git a/todo.txt b/todo.txt index 9f36c5b..4b808bd 100644 --- a/todo.txt +++ b/todo.txt @@ -2,7 +2,6 @@ List of changes that have to be done List of ideas that could be implemented -- Confirmation dialog before saving files - post-save scripts (to workaround current limitations) - Configuration validation - Git functionality (with local repository) \ No newline at end of file