CC-3979: Playout History export should include date range in file and/or
filename - fix
This commit is contained in:
parent
6a75fd6c76
commit
e40d9731a2
|
@ -1,12 +1,18 @@
|
||||||
function getFileName(){
|
function getFileName(ext){
|
||||||
var filename = $("#his_date_start").val()+"_"+$("#his_time_start").val()+"m--"+$("#his_date_end").val()+"_"+$("#his_time_end").val()+"m"
|
var filename = $("#his_date_start").val()+"_"+$("#his_time_start").val()+"m--"+$("#his_date_end").val()+"_"+$("#his_time_end").val()+"m"
|
||||||
filename = filename.replace(/:/g,"h")
|
filename = filename.replace(/:/g,"h")
|
||||||
|
if(ext == "pdf"){
|
||||||
|
filename = filename+".pdf"
|
||||||
|
}else{
|
||||||
|
filename = filename+".csv"
|
||||||
|
}
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setFlashFileName( nButton, oConfig, oFlash ) {
|
function setFlashFileName( nButton, oConfig, oFlash ) {
|
||||||
var filename = getFileName()
|
var filename = getFileName(oConfig.sExtends)
|
||||||
oFlash.setFileName( filename );
|
oFlash.setFileName( filename );
|
||||||
|
if(oConfig.sExtends == "pdf"){
|
||||||
this.fnSetText( oFlash,
|
this.fnSetText( oFlash,
|
||||||
"title:"+ this.fnGetTitle(oConfig) +"\n"+
|
"title:"+ this.fnGetTitle(oConfig) +"\n"+
|
||||||
"message:"+ oConfig.sPdfMessage +"\n"+
|
"message:"+ oConfig.sPdfMessage +"\n"+
|
||||||
|
@ -15,6 +21,10 @@ function setFlashFileName( nButton, oConfig, oFlash ) {
|
||||||
"size:"+ oConfig.sPdfSize +"\n"+
|
"size:"+ oConfig.sPdfSize +"\n"+
|
||||||
"--/TableToolsOpts--\n" +
|
"--/TableToolsOpts--\n" +
|
||||||
this.fnGetTableData(oConfig));
|
this.fnGetTableData(oConfig));
|
||||||
|
}else{
|
||||||
|
this.fnSetText( oFlash,
|
||||||
|
this.fnGetTableData(oConfig));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var AIRTIME = (function(AIRTIME) {
|
var AIRTIME = (function(AIRTIME) {
|
||||||
|
|
Loading…
Reference in New Issue