Browse Source

updated everything to support

finished
yeungalan 5 năm trước cách đây
mục cha
commit
fefd7f45c2
2 tập tin đã thay đổi với 5 bổ sung33 xóa
  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"];

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 28
WriterA/jspdf.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác