mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
Moved John's code to the correct place
This commit is contained in:
parent
73f97cc7d5
commit
a717e07531
3 changed files with 22 additions and 20 deletions
|
@ -230,6 +230,14 @@ var padimpexp = (function()
|
|||
var self = {
|
||||
init: function()
|
||||
{
|
||||
// build the export links
|
||||
$("#exporthtmla").attr("href", document.location.href + "/export/html");
|
||||
$("#exportplaina").attr("href", document.location.href + "/export/txt");
|
||||
$("#exportworda").attr("href", document.location.href + "/export/doc");
|
||||
$("#exportpdfa").attr("href", document.location.href + "/export/pdf");
|
||||
$("#exportopena").attr("href", document.location.href + "/export/odt");
|
||||
$("#exportwordlea").attr("href", document.location.href + "/export/wordle");
|
||||
|
||||
$("#importform").get(0).setAttribute('action', document.location.href + "/import");
|
||||
|
||||
$("#impexp-close").click(function()
|
||||
|
@ -264,6 +272,19 @@ var padimpexp = (function()
|
|||
$("#impexp-disabled-clickcatcher").hide();
|
||||
$("#import").css('opacity', 1);
|
||||
$("#impexp-export").css('opacity', 1);
|
||||
},
|
||||
export2Wordle: function()
|
||||
{
|
||||
padUrl = location.pathname;
|
||||
padHost = location.host;
|
||||
var padUrl = "http://" + padHost + padUrl + "/export/txt";
|
||||
|
||||
$.get(padUrl, function(data)
|
||||
{
|
||||
$('.result').html(data);
|
||||
$('#text').html(data);
|
||||
$('#wordlepost').submit();
|
||||
});
|
||||
}
|
||||
};
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue