reorganize class name

This commit is contained in:
2026-10-06 14:05:52 +07:00
parent 8a758e5875
commit 17188f6134
13 changed files with 417 additions and 309 deletions
+6 -5
View File
@@ -10,15 +10,16 @@
*******************************************************************/
var cPDF = function(url, options){
var Pdf = function(options){
var vars = {
'url': '',
'zoom': 80,
'param': []
};
this.construct = function(url, options){
$.extend(vars, options);
vars.url = url;
this.construct = function(options){
if (typeof options == 'object') {
$.extend(vars, options);
} else vars.url = options;
};
this.set_url = function (url){
vars.url = url;
@@ -61,5 +62,5 @@ var cPDF = function(url, options){
$(this).remove();
}).modal('show');
};
this.construct(url, options);
this.construct(options);
};