mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
fix select all issue
This commit is contained in:
parent
729d2e98f7
commit
23611c8d54
@ -166,7 +166,6 @@ table.tableTag td {
|
|||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
padding-top :0px;
|
padding-top :0px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
background-color: #000000;
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
}
|
}
|
||||||
|
@ -209,6 +209,7 @@ $(function () {
|
|||||||
$(this).addClass('active');
|
$(this).addClass('active');
|
||||||
$('#foldersContainer .active i').addClass('icon-white');
|
$('#foldersContainer .active i').addClass('icon-white');
|
||||||
|
|
||||||
|
$('input:checkbox').prop('checked', false);
|
||||||
// Reload the table data ...
|
// Reload the table data ...
|
||||||
dataTable.fnReloadAjax("c/restful/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true);
|
dataTable.fnReloadAjax("c/restful/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
@ -39,18 +39,8 @@ $.fn.dataTableExt.oApi.fnReloadAjax = function (oSettings, sNewSource, fnCallbac
|
|||||||
};
|
};
|
||||||
|
|
||||||
jQuery.fn.dataTableExt.selectAllMaps = function () {
|
jQuery.fn.dataTableExt.selectAllMaps = function () {
|
||||||
var total = $('.select input:checkbox[id!="selectAll"]').size();
|
var bool = $("input:checkbox[id='selectAll']").prop('checked');
|
||||||
var selected = $('.select input:checked[id!="selectAll"]').size();
|
$("input:checkbox[id!='selectAll']").prop('checked', bool);
|
||||||
if (selected < total) {
|
|
||||||
$('.select input:!checked[id!="selectAll"]').each(function () {
|
|
||||||
$(this).prop("checked", true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('.select input:!checked[id!="selectAll"]').each(function () {
|
|
||||||
$(this).prop("checked", false);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
updateStatusToolbar();
|
updateStatusToolbar();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,9 +108,11 @@
|
|||||||
$('#mindmapListTable_length select').attr("style", "width:60px;");
|
$('#mindmapListTable_length select').attr("style", "width:60px;");
|
||||||
|
|
||||||
|
|
||||||
$('input:checkbox[id="selectAll"]').click(function () {
|
$('input:checkbox[id="selectAll"]').click(
|
||||||
|
function () {
|
||||||
$("#mindmapListTable").dataTableExt.selectAllMaps();
|
$("#mindmapListTable").dataTableExt.selectAllMaps();
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// Hack for changing the pagination buttons ...
|
// Hack for changing the pagination buttons ...
|
||||||
$('#nPageBtn').click(function () {
|
$('#nPageBtn').click(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user