This repository was archived by the owner on Dec 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
docconvert/zimlet/tk_barrydegraaff_docconvert Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ docConvertZimlet.prototype.addDocConvertLink =
73
73
function ( attachment ) {
74
74
var html =
75
75
"<a href='#' class='AttLink' style='text-decoration:underline;' " +
76
- "onClick=\"docConvertZimlet.prototype.saveAttachment(' " + attachment . label + "',' " + attachment . url + "' )\">" +
76
+ "onClick=\"docConvertZimlet.prototype.saveAttachment(" " + attachment . label + ""," " + attachment . url + "" )\">" +
77
77
"PDF" +
78
78
"</a>" ;
79
79
@@ -114,18 +114,6 @@ function(name, url) {
114
114
} ;
115
115
116
116
docConvertZimlet . prototype . downloadBlob = function ( filename , type , blob ) {
117
- if ( ! window . navigator . msSaveOrOpenBlob )
118
- {
119
- var a = document . createElement ( "a" ) ;
120
- document . body . appendChild ( a ) ;
121
- a . style = "display: none" ;
122
117
url = window . URL . createObjectURL ( blob ) ;
123
- a . href = url ;
124
- a . download = filename ;
125
- a . click ( ) ;
126
- }
127
- else
128
- {
129
- window . navigator . msSaveOrOpenBlob ( blob , filename ) ;
130
- }
118
+ window . open ( url , '_blank' ) ;
131
119
}
You can’t perform that action at this time.
0 commit comments