Fix post valifity inverval
This commit is contained in:
@@ -382,8 +382,8 @@ class Spot extends Main
|
|||||||
'constOpe' => array(Db::getId(Project::PROJ_TABLE) => "=")
|
'constOpe' => array(Db::getId(Project::PROJ_TABLE) => "=")
|
||||||
);
|
);
|
||||||
if($this->oProject->getMode()==Project::MODE_HISTO) {
|
if($this->oProject->getMode()==Project::MODE_HISTO) {
|
||||||
$asInfo['constraint']['site_time'] = $this->oProject->getActivePeriod();
|
$asInfo['constraint']['site_time'] = $this->oProject->getActivePeriod('to');
|
||||||
$asInfo['constOpe']['site_time'] = "BETWEEN";
|
$asInfo['constOpe']['site_time'] = "<=";
|
||||||
}
|
}
|
||||||
$asPosts = $this->oDb->selectRows($asInfo);
|
$asPosts = $this->oDb->selectRows($asInfo);
|
||||||
|
|
||||||
|
|||||||
@@ -586,7 +586,7 @@ function initSpotMessages(aoMessages, aoTracks) {
|
|||||||
//Tooltip
|
//Tooltip
|
||||||
$Tooltip = $('<div>', {'class':'info-window'})
|
$Tooltip = $('<div>', {'class':'info-window'})
|
||||||
.append($('<h1>')
|
.append($('<h1>')
|
||||||
.addIcon('fa-message fa-lg push')
|
.addIcon('fa-message fa-lg', true)
|
||||||
.append($('<span>').text('Message '+oSpot.lang('counter', oMsg.displayed_id)))
|
.append($('<span>').text('Message '+oSpot.lang('counter', oMsg.displayed_id)))
|
||||||
.append($('<span>', {'class':'message-type'}).text('('+oMsg.type+')'))
|
.append($('<span>', {'class':'message-type'}).text('('+oMsg.type+')'))
|
||||||
)
|
)
|
||||||
@@ -601,7 +601,7 @@ function initSpotMessages(aoMessages, aoTracks) {
|
|||||||
//Tooltip: Time Zone
|
//Tooltip: Time Zone
|
||||||
if(oMsg.formatted_time_local != oMsg.formatted_time) {
|
if(oMsg.formatted_time_local != oMsg.formatted_time) {
|
||||||
$Tooltip.append($('<p>', {'class':'timezone'})
|
$Tooltip.append($('<p>', {'class':'timezone'})
|
||||||
.addIcon('fa-timezone fa-fw fa-lg')
|
.addIcon('fa-timezone fa-fw fa-lg', true)
|
||||||
.append(oSpot.lang('local_time', oMsg.formatted_time_local)));
|
.append(oSpot.lang('local_time', oMsg.formatted_time_local)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user