Now import/Export works

pull/35/head
John McLear 2011-07-20 17:33:27 +01:00
parent 1fca334704
commit 2920c35c0f
2 changed files with 7 additions and 2 deletions

View File

@ -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")

View File

@ -94,7 +94,7 @@ var clientVars = {}; // ]]>
</li>
<li>
<a onClick="window.pad&&pad.editbarClick('import_export');return false;"
title="(Placeholder, not implemented so far) Import/Export from/to different document formats">
title="Import/Export from/to different document formats">
<img src="../static/img/editbar_import_export.gif" width="16" height="16" />
</a>
</li>