Skip to content

Commit

Permalink
refs #1067 : modified - blog.fx (completed.)
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jan 31, 2015
1 parent 879ace4 commit b018b1a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions library/model/blog.fx.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)

$fxList = array();
function setDetailPanel($id,$type = 'section',$string = '') {
global $fxList;
$context = Model_Context::getInstance();
$context = Model_Context::getInstance();
// if(in_array($fxList,$id)) return '';
$fxList = $context->getProperty('blog.fxList');
array_push($fxList, $id);

$hrefVal = '';
switch($type) {
case 'button':
Expand All @@ -35,12 +35,13 @@ function setDetailPanel($id,$type = 'section',$string = '') {
}
break;
}
$context->setProperty('blog.fxList',$fxList);
return $hrefVal;
}

function activateDetailPanelJS() {
global $fxList;
$context = Model_Context::getInstance();
$fxList = $context->getProperty('blog.fxList');
$jsVal = '';
if(!empty($fxList) && ($context->getProperty('service.interface') == 'simple')) {
$jsVal = "jQuery(document).ready(function(jQuery) {".CRLF;
Expand Down

0 comments on commit b018b1a

Please # to comment.