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,
|
||||
'type' => 'text',
|
||||
'label' => 'Archive server location URL',
|
||||
'required' => false,
|
||||
'default' => "http://" . $CC_CONFIG['archiveUrlHost'] . ":" . $CC_CONFIG['archiveUrlPort'] . $CC_CONFIG['archiveUrlPath']."/".$CC_CONFIG['archiveXMLRPC'],
|
||||
'required' => TRUE,
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
|
|
|
@ -86,14 +86,16 @@
|
|||
duration = duration.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];
|
||||
}
|
||||
else{
|
||||
duration = duration[1]+":"+duration[2];
|
||||
}
|
||||
|
||||
|
||||
tool_tip_content.append("<tr><td>Duration: </td><td>"+duration+"</td></tr>");
|
||||
|
||||
if(type === "playlist") {
|
||||
|
|
Loading…
Reference in New Issue