* 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);
});
}
});