CC-1668 if no preference is set, archive server taken from config file.
This commit is contained in:
parent
eff63827d7
commit
17fddfc4e6
|
@ -74,7 +74,8 @@ $ui_fmask = array(
|
||||||
'isPref' => TRUE,
|
'isPref' => TRUE,
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'label' => 'Archive server location URL',
|
'label' => 'Archive server location URL',
|
||||||
'required' => false,
|
'default' => "http://" . $CC_CONFIG['archiveUrlHost'] . ":" . $CC_CONFIG['archiveUrlPort'] . $CC_CONFIG['archiveUrlPath']."/".$CC_CONFIG['archiveXMLRPC'],
|
||||||
|
'required' => TRUE,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'rule' => 'regex',
|
'rule' => 'regex',
|
||||||
|
|
|
@ -86,14 +86,16 @@
|
||||||
duration = duration.split(".");
|
duration = duration.split(".");
|
||||||
duration = duration[0].split(":");
|
duration = duration[0].split(":");
|
||||||
|
|
||||||
if(parseInt(duration[0] !== 0)) {
|
if(duration[0] == ''){
|
||||||
|
duration = "00:00";
|
||||||
|
}
|
||||||
|
else if(parseInt(duration[0]) !== 0) {
|
||||||
duration = duration[0] +":"+duration[1]+":"+duration[2];
|
duration = duration[0] +":"+duration[1]+":"+duration[2];
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
duration = duration[1]+":"+duration[2];
|
duration = duration[1]+":"+duration[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tool_tip_content.append("<tr><td>Duration: </td><td>"+duration+"</td></tr>");
|
tool_tip_content.append("<tr><td>Duration: </td><td>"+duration+"</td></tr>");
|
||||||
|
|
||||||
if(type === "playlist") {
|
if(type === "playlist") {
|
||||||
|
|
Loading…
Reference in New Issue