* refactor code.

This commit is contained in:
Catouse
2017-01-04 13:39:52 +08:00
parent 666ef225d0
commit c707519caa
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -70,15 +70,15 @@ $(document).ready(function()
$dropmenu.append("<li><a href='javascript:;' id='switchToTable'><?php echo $lang->datatable->switchToTable?></a></li>");
$dropdown.children('.dropdown').append($dropmenu);
this.$datatable.before($dropdown);
this.$datatable.find('[data-toggle=modal], a.iframe').modalTrigger();
this.$datatable.find('[data-toggle="modal"], a.iframe').modalTrigger();
if($.fn.progressPie) this.$datatable.find('.progress-pie').progressPie();
$("a[data-toggle='showModuleModal']").click(function(){$('#showModuleModal').modal('show')});
$('a[data-toggle="showModuleModal"]').click(function(){$('#showModuleModal').modal('show')});
$('#customBtn').modalTrigger();
$('#switchToTable').click(function()
{
saveDatatableConfig('mode', 'table', true)
saveDatatableConfig('mode', 'table', true);
});
}
});
+2 -2
View File
@@ -8,10 +8,10 @@
<?php if($onlybody != 'yes'):?>
</div><?php /* end '#wrap' in 'header.html.php'. */ ?>
<div id='footer'>
<div id="crumbs">
<div id='crumbs'>
<?php commonModel::printBreadMenu($this->moduleName, isset($position) ? $position : ''); ?>
</div>
<div id="poweredby">
<div id='poweredby'>
<a href='http://www.zentao.net' target='_blank' class='text-primary'><i class='icon-zentao'></i> <?php echo $lang->zentaoPMS . $config->version;?></a> &nbsp;
<?php echo $lang->proVersion;?>
<?php commonModel::printNotifyLink();?>