|
|
@@ -785,10 +785,10 @@ echo $_GET['filepath'];
|
|
|
.done(function( data ) {
|
|
|
printPDF(data,false);
|
|
|
if(ao_module_virtualDesktop){
|
|
|
- ao_module_openFileSelector(Math.round(Math.random()*10000),"saveas",undefined,undefined,false,"new","Untitled.pdf",false);
|
|
|
+ ao_module_openFileSelector(Math.round(Math.random()*10000),"saveasPDFHTML",undefined,undefined,false,"new","Untitled.pdf",false);
|
|
|
//ao_module_openFileSelector(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "folder",callBack=saveasPDF);
|
|
|
}else{
|
|
|
- ao_module_openFileSelectorTab(Math.round(Math.random()*10000),"saveas",undefined,undefined,false,"new","Untitled.pdf",false);
|
|
|
+ ao_module_openFileSelectorTab(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "new",callBack=saveasPDFHTML,newfwname="Untited.pdf");
|
|
|
//ao_module_openFileSelectorTab(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "folder",callBack=saveasPDF);
|
|
|
}
|
|
|
});
|
|
|
@@ -801,10 +801,10 @@ echo $_GET['filepath'];
|
|
|
.done(function( data ) {
|
|
|
datauri = data;
|
|
|
if(ao_module_virtualDesktop){
|
|
|
- ao_module_openFileSelector(Math.round(Math.random()*10000),"saveas",undefined,undefined,false,"new","Untitled.html",false);
|
|
|
+ ao_module_openFileSelector(Math.round(Math.random()*10000),"saveasPDFHTML",undefined,undefined,false,"new","Untitled.html",false);
|
|
|
//ao_module_openFileSelector(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "folder",callBack=saveasHTML);
|
|
|
}else{
|
|
|
- ao_module_openFileSelectorTab(Math.round(Math.random()*10000),"saveas",undefined,undefined,false,"new","Untitled.html",false);
|
|
|
+ ao_module_openFileSelectorTab(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "new",callBack=saveasPDFHTML,newfwname="Untited.html");
|
|
|
//ao_module_openFileSelectorTab(Math.round(Math.random()*10000), "../",allowMultiple = false, selectMode = "folder",callBack=saveasHTML);
|
|
|
}
|
|
|
|
|
|
@@ -920,7 +920,7 @@ echo $_GET['filepath'];
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- function saveas(path){
|
|
|
+ function saveasPDFHTML(path){
|
|
|
try{
|
|
|
console.log(path);
|
|
|
var filepath = JSON.parse(path)[0]["filepath"];
|