* adjust flow.
This commit is contained in:
@@ -36,7 +36,7 @@ class index extends control
|
||||
|
||||
if($_POST)
|
||||
{
|
||||
$this->loadModel('setting')->setItem('system', 'common', '', 'flow', $this->post->flow);
|
||||
$this->loadModel('setting')->setItem('system', 'common', 'global', 'flow', $this->post->flow);
|
||||
if($this->post->flow != 'full') die(js::locate($this->createLink('extension', 'install', "extension={$this->config->index->flow2Ext[$this->post->flow]}"), 'parent'));
|
||||
die(js::reload( 'parent.parent'));
|
||||
}
|
||||
|
||||
@@ -14,4 +14,5 @@ $(function()
|
||||
{
|
||||
$(this).sparkline('html', {height:'25px'});
|
||||
})
|
||||
if(typeof(flow) != 'undefined' && flow) $.colorbox({href:createLink('index', 'index', 'type=flow'), open:true, width:800, height:400, iframe:true});
|
||||
});
|
||||
|
||||
@@ -37,12 +37,5 @@
|
||||
<?php endif;?>
|
||||
</tr>
|
||||
</table>
|
||||
<script type='text/javascript'>
|
||||
<?php
|
||||
if(!(isset($this->app->config->flow) or strpos($this->config->version, 'pro') !== false or strpos($this->app->company->admins, ",{$this->app->user->account},") === false))
|
||||
{
|
||||
echo "\$.colorbox({href:" . json_encode($this->createLink('index', 'index', 'type=flow')) . ", open:true, width:800, height:400, iframe:true});\n";
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
<?php if(!(isset($config->global->flow) or strpos($this->config->version, 'pro') !== false or strpos($this->app->company->admins, ",{$this->app->user->account},") === false)) js::set('flow', 'true', 'number');?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user