* Hidden market field in marketreport-browse.
This commit is contained in:
@@ -32,6 +32,10 @@ $(function()
|
||||
{
|
||||
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName . '&extra=unsetStory')?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
|
||||
}
|
||||
else if(currentModule == 'marketreport' && currentMethod == 'browse')
|
||||
{
|
||||
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName . '&extra=unsetMarket')?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
|
||||
}
|
||||
else
|
||||
{
|
||||
$dropmenu.append("<li><a href='<?php echo $this->createLink('datatable', 'ajaxCustom', 'id=' . $this->moduleName . '&method=' . $this->methodName)?>' data-toggle='modal' data-type='ajax'><?php echo $lang->datatable->custom?></a></li>");
|
||||
|
||||
@@ -132,6 +132,7 @@ class datatable extends control
|
||||
|
||||
$this->view->cols = $cols;
|
||||
$this->view->setting = $setting;
|
||||
$this->view->extra = $extra;
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,8 @@
|
||||
$width = $col['width'];
|
||||
$autoWidth = $width == 'auto';
|
||||
?>
|
||||
<div class='clearfix col<?php echo ($required ? ' require' : '') . (' fixed-' . $fixed) ?>' data-key='<?php echo $key?>' data-fixed='<?php echo $fixed?>' data-width='<?php echo $width;?>'>
|
||||
<?php $hidden = ($extra == 'unsetMarket' && $key == 'market') ? 'hidden' : '';?>
|
||||
<div class='clearfix col<?php echo ($required ? ' require' : '') . (' fixed-' . $fixed) ?> <?php echo $hidden;?>' data-key='<?php echo $key?>' data-fixed='<?php echo $fixed?>' data-width='<?php echo $width;?>'>
|
||||
<div class='actions pull-right' <?php if($autoWidth) echo "style='padding-right: 11px'";?>>
|
||||
<?php if(isset($col['name'])) echo html::hidden('name', $col['name'])?>
|
||||
<span><span class='text-muted'><?php echo $lang->datatable->width?></span> <input type='text' id='width' class='form-control' value='<?php echo $width;?>'><?php echo $autoWidth ? ' ' : 'px' ?></span>
|
||||
|
||||
Reference in New Issue
Block a user