From ff2fc76491c11fad33ae6c62c4d5b5c47b431597 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Sun, 31 Jan 2016 15:42:26 -0600 Subject: Supported export to gist --- public/js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public/js') diff --git a/public/js/index.js b/public/js/index.js index bc3ee793..f4b6904e 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -311,7 +311,8 @@ var ui = { html: $(".ui-download-html") }, export: { - dropbox: $(".ui-save-dropbox") + dropbox: $(".ui-save-dropbox"), + gist: $(".ui-save-gist") }, import: { dropbox: $(".ui-import-dropbox"), @@ -857,6 +858,8 @@ ui.toolbar.export.dropbox.click(function () { }; Dropbox.save(options); }); +//export to gist +ui.toolbar.export.gist.attr("href", url + "/gist"); //import from dropbox ui.toolbar.import.dropbox.click(function () { var options = { -- cgit v1.2.3