|
@@ -390,25 +390,26 @@
|
|
tTagBef = '<div class="file-preview-frame {frameClass}" id="{previewId}" data-fileindex="{fileindex}"' +
|
|
tTagBef = '<div class="file-preview-frame {frameClass}" id="{previewId}" data-fileindex="{fileindex}"' +
|
|
' data-template="{template}"';
|
|
' data-template="{template}"';
|
|
tTagBef1 = tTagBef + '><div class="kv-file-content">\n';
|
|
tTagBef1 = tTagBef + '><div class="kv-file-content">\n';
|
|
- tTagBef2 = tTagBef + ' title="{caption}" ' + $h.STYLE_SETTING + '><div class="kv-file-content">\n';
|
|
|
|
|
|
+ tTagBef2 = tTagBef + ' title="{caption}"><div class="kv-file-content">\n';
|
|
tTagAft = '</div>{footer}\n</div>\n';
|
|
tTagAft = '</div>{footer}\n</div>\n';
|
|
tGeneric = '{content}\n';
|
|
tGeneric = '{content}\n';
|
|
tHtml = '<div class="kv-preview-data file-preview-html" title="{caption}" ' + $h.STYLE_SETTING +
|
|
tHtml = '<div class="kv-preview-data file-preview-html" title="{caption}" ' + $h.STYLE_SETTING +
|
|
'>{data}</div>\n';
|
|
'>{data}</div>\n';
|
|
- tImage = '<img src="{data}" class="kv-preview-data file-preview-image" title="{caption}" alt="{caption}" ' +
|
|
|
|
|
|
+ tImage = '<img src="{data}" class="file-preview-image kv-preview-data" title="{caption}" alt="{caption}" ' +
|
|
$h.STYLE_SETTING + '>\n';
|
|
$h.STYLE_SETTING + '>\n';
|
|
- tText = '<textarea class="kv-preview-data file-preview-text" title="{caption}" readonly ' + $h.STYLE_SETTING +
|
|
|
|
- '>{data}</textarea>\n';
|
|
|
|
- tVideo = '<video class="kv-preview-data" width="{width}" height="{height}" controls>\n' +
|
|
|
|
- '<source src="{data}" type="{type}">\n' + $h.DEFAULT_PREVIEW + '\n</video>\n';
|
|
|
|
- tAudio = '<audio class="kv-preview-data" controls>\n<source src="' + '{data}' + '" type="{type}">\n' +
|
|
|
|
- $h.DEFAULT_PREVIEW + '\n</audio>\n';
|
|
|
|
|
|
+ tText = '<textarea class="kv-preview-data file-preview-text" title="{caption}" readonly ' +
|
|
|
|
+ $h.STYLE_SETTING + '>{data}</textarea>\n';
|
|
|
|
+ tVideo = '<video class="kv-preview-data file-preview-video" width="{width}" ' +
|
|
|
|
+ 'height="{height}" controls>\n' + '<source src="{data}" type="{type}">\n' + $h.DEFAULT_PREVIEW +
|
|
|
|
+ '\n</video>\n';
|
|
|
|
+ tAudio = '<div class="file-preview-audio"><audio class="kv-preview-data" controls>\n<source src="{data}" ' +
|
|
|
|
+ 'type="{type}">\n' + $h.DEFAULT_PREVIEW + '\n</audio></div>\n';
|
|
tFlash = '<object class="kv-preview-data file-object" type="application/x-shockwave-flash" ' +
|
|
tFlash = '<object class="kv-preview-data file-object" type="application/x-shockwave-flash" ' +
|
|
'width="{width}" height="{height}" data="{data}">\n' + $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW +
|
|
'width="{width}" height="{height}" data="{data}">\n' + $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW +
|
|
'\n</object>\n';
|
|
'\n</object>\n';
|
|
tObject = '<object class="kv-preview-data file-object" data="{data}" type="{type}" ' +
|
|
tObject = '<object class="kv-preview-data file-object" data="{data}" type="{type}" ' +
|
|
- 'width="{width}" height="{height}">\n' +
|
|
|
|
- '<param name="movie" value="{caption}" />\n' + $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW + '\n</object>\n';
|
|
|
|
|
|
+ 'width="{width}" height="{height}">\n' + '<param name="movie" value="{caption}" />\n' +
|
|
|
|
+ $h.OBJECT_PARAMS + ' ' + $h.DEFAULT_PREVIEW + '\n</object>\n';
|
|
tPdf = '<embed class="kv-preview-data" src="{data}" ' +
|
|
tPdf = '<embed class="kv-preview-data" src="{data}" ' +
|
|
'width="{width}" height="{height}" type="application/pdf">\n';
|
|
'width="{width}" height="{height}" type="application/pdf">\n';
|
|
tOther = '<div class="kv-preview-data file-preview-other-frame">\n' + $h.DEFAULT_PREVIEW + '\n</div>\n';
|
|
tOther = '<div class="kv-preview-data file-preview-other-frame">\n' + $h.DEFAULT_PREVIEW + '\n</div>\n';
|
|
@@ -462,7 +463,7 @@
|
|
video: {width: "213px", height: "160px"},
|
|
video: {width: "213px", height: "160px"},
|
|
audio: {width: "213px", height: "80px"},
|
|
audio: {width: "213px", height: "80px"},
|
|
flash: {width: "213px", height: "160px"},
|
|
flash: {width: "213px", height: "160px"},
|
|
- object: {width: "160px", height: "160px"},
|
|
|
|
|
|
+ object: {width: "160px", height: "auto"},
|
|
pdf: {width: "160px", height: "160px"},
|
|
pdf: {width: "160px", height: "160px"},
|
|
other: {width: "160px", height: "160px"}
|
|
other: {width: "160px", height: "160px"}
|
|
},
|
|
},
|