From 2920c35c0f109cfb08c434ebb5923acc5a227a5a Mon Sep 17 00:00:00 2001 From: John McLear Date: Wed, 20 Jul 2011 17:33:27 +0100 Subject: [PATCH] Now import/Export works --- static/js/pad_editbar.js | 7 ++++++- static/pad.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/pad_editbar.js b/static/js/pad_editbar.js index 2095ab9ad..75cd7402f 100644 --- a/static/js/pad_editbar.js +++ b/static/js/pad_editbar.js @@ -105,6 +105,11 @@ var padeditbar = (function() self.toogleDropDown("embed"); $('#embedinput').focus().select(); } + else if (cmd == 'import_export') + { + self.toogleDropDown("importexport"); + } + else if (cmd == 'readonly') { var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/")); @@ -158,7 +163,7 @@ var padeditbar = (function() }, toogleDropDown: function(moduleName) { - var modules = ["embed", "users", "readonly"]; + var modules = ["embed", "users", "readonly", "importexport"]; //hide all modules if(moduleName == "none") diff --git a/static/pad.html b/static/pad.html index 2b85009bc..7177ce69f 100644 --- a/static/pad.html +++ b/static/pad.html @@ -94,7 +94,7 @@ var clientVars = {}; // ]]>
  • + title="Import/Export from/to different document formats">