Parcourir la source

updated everything to support

finished
yeungalan il y a 5 ans
Parent
commit
fefd7f45c2
2 fichiers modifiés avec 5 ajouts et 33 suppressions
  1. 5 5
      WriterA/index.php
  2. 0 28
      WriterA/jspdf.min.js

+ 5 - 5
WriterA/index.php

@@ -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"];

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 28
WriterA/jspdf.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff