|
|
@@ -210,6 +210,8 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
|
|
|
if(!$this->_oDb->updateEvent(array('pinned' => $aEvent['pinned']), array('id' => $iId)))
|
|
|
return echoJson(array('code' => 3));
|
|
|
|
|
|
+ $this->rebuildSlice();
|
|
|
+
|
|
|
echoJson(array(
|
|
|
'code' => 0,
|
|
|
'id' => $iId,
|
|
|
@@ -235,6 +237,8 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
|
|
|
if(!$this->_oDb->updateEvent(array('sticked' => $aEvent['sticked']), array('id' => $iId)))
|
|
|
return echoJson(array('code' => 3));
|
|
|
|
|
|
+ $this->rebuildSlice();
|
|
|
+
|
|
|
bx_audit(
|
|
|
$iId,
|
|
|
$this->getName(),
|
|
|
@@ -266,6 +270,8 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
|
|
|
if(!$this->_oDb->updateEvent(array('promoted' => $aEvent['promoted']), array('id' => $iId)))
|
|
|
return echoJson(array('code' => 2));
|
|
|
|
|
|
+ $this->rebuildSlice();
|
|
|
+
|
|
|
bx_alert($this->_oConfig->getObject('alert'), $sAction . 'd', $iId, (int)$this->getUserId(), array(
|
|
|
'owner_id' => $aEvent['owner_id'],
|
|
|
'object_id' => $aEvent['object_id'],
|