* fix setCheckedCookie not work dtable.
This commit is contained in:
@@ -8,6 +8,15 @@ css::import($jsRoot . 'dtable/min.css');
|
||||
.dtable-header .dtable-cell {font-weight: bold;}
|
||||
</style>
|
||||
<script>
|
||||
/* set checked rows of main table in cookie */
|
||||
var oldSetCheckedCookie = window.setCheckedCookie;
|
||||
window.setCheckedCookie = function()
|
||||
{
|
||||
var dtable = $('#mainContent [data-zui-dtable]').data('zui.DTable');
|
||||
if(!dtable) return oldSetCheckedCookie();
|
||||
$.cookie('checkedItem', dtable.$.getChecks().join(','), {expires: config.cookieLife, path: config.webRoot});
|
||||
};
|
||||
|
||||
function convertCols(cols)
|
||||
{
|
||||
cols.forEach(function(col)
|
||||
|
||||
@@ -174,13 +174,6 @@ js::set('isCNLang', !$this->loadModel('common')->checkNotCN());
|
||||
}
|
||||
}
|
||||
|
||||
$(".export").modalTrigger({width:650, type:'iframe', shown: setCookie});
|
||||
|
||||
function setCookie()
|
||||
{
|
||||
$.cookie('checkedItem', checkItems.join(','), {expires: config.cookieLife, path: config.webRoot});
|
||||
}
|
||||
|
||||
$('#dtable').dtable(options);
|
||||
|
||||
$('#batchEditBtn').click(function()
|
||||
|
||||
Reference in New Issue
Block a user