Now import/Export works
This commit is contained in:
parent
1fca334704
commit
2920c35c0f
|
@ -105,6 +105,11 @@ var padeditbar = (function()
|
||||||
self.toogleDropDown("embed");
|
self.toogleDropDown("embed");
|
||||||
$('#embedinput').focus().select();
|
$('#embedinput').focus().select();
|
||||||
}
|
}
|
||||||
|
else if (cmd == 'import_export')
|
||||||
|
{
|
||||||
|
self.toogleDropDown("importexport");
|
||||||
|
}
|
||||||
|
|
||||||
else if (cmd == 'readonly')
|
else if (cmd == 'readonly')
|
||||||
{
|
{
|
||||||
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
|
var basePath = document.location.href.substring(0, document.location.href.indexOf("/p/"));
|
||||||
|
@ -158,7 +163,7 @@ var padeditbar = (function()
|
||||||
},
|
},
|
||||||
toogleDropDown: function(moduleName)
|
toogleDropDown: function(moduleName)
|
||||||
{
|
{
|
||||||
var modules = ["embed", "users", "readonly"];
|
var modules = ["embed", "users", "readonly", "importexport"];
|
||||||
|
|
||||||
//hide all modules
|
//hide all modules
|
||||||
if(moduleName == "none")
|
if(moduleName == "none")
|
||||||
|
|
|
@ -94,7 +94,7 @@ var clientVars = {}; // ]]>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a onClick="window.pad&&pad.editbarClick('import_export');return false;"
|
<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" />
|
<img src="../static/img/editbar_import_export.gif" width="16" height="16" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue