From f8c2736a1058f7f1f2d75479e29df7d267794791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 11 Feb 2015 09:39:42 +0100 Subject: remove docs --- docs/js/editor.js | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 docs/js/editor.js (limited to 'docs/js/editor.js') diff --git a/docs/js/editor.js b/docs/js/editor.js deleted file mode 100644 index 9209d59c..00000000 --- a/docs/js/editor.js +++ /dev/null @@ -1,53 +0,0 @@ -$(document).ready(function() { - var markdown_editor = $("#markdown_editor"), - save_editor = $(".save_editor"), - editor = $(".editor"); - - $("#editThis").click(function() { - editor.css({"display":"block"}); - markdown_editor.autosize().val(); - }); - - $(".closeEditor").click(function() { - editor.css({"display":"none"}); - }); - - save_editor.click(function() { - var original_text = save_editor.text(); - save_editor.text("Saving...").addClass("disabled"); - - $.post(window.location.href, {markdown: markdown_editor.val(), method: 'DauxEdit' }, function() { - save_editor.text("Done! Reloading page in 5 seconds. You can cancel it with ESC key"); - - var timeout = setTimeout(function() { - location.reload() - }, 5000); // lie - - $(document).keyup(function(e) { - if (e.keyCode == 27) { // esc key - clearTimeout(timeout); - save_editor.text("Page reload cancelled"); - setTimeout(function() { - save_editor.text(original_text).removeClass('disabled'); - }, 2000); - } - }); - }).fail(function() { - save_editor.removeClass('disabled').addClass("btn-danger").text("Failed :( - try checking your read/write permissions"); - setTimeout(function() { - save_editor.text(original_text).removeClass('btn-danger'); - },5000); - }); - }); -}); - - - - -/*! - Autosize v1.18.4 - 2014-01-11 - Automatically adjust textarea height based on user input. - (c) 2014 Jack Moore - http://www.jacklmoore.com/autosize - license: http://www.opensource.org/licenses/mit-license.php -*/ -!function(a){var b,c={className:"autosizejs",append:"",callback:!1,resizeDelay:10,placeholder:!0},d='