Don't reload datatable when selecting same media type
This commit is contained in:
parent
8609934861
commit
0324c59100
|
@ -968,11 +968,14 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".media_type_selector").on("click", function() {
|
$(".media_type_selector").on("click", function() {
|
||||||
$(".media_type_selector").each(function() {
|
if (!$(this).hasClass("selected")) {
|
||||||
|
// TODO: deselect any highlighted items when we switch filtering
|
||||||
|
$(".media_type_selector").each(function () {
|
||||||
$(this).removeClass("selected");
|
$(this).removeClass("selected");
|
||||||
});
|
});
|
||||||
$(this).addClass("selected");
|
$(this).addClass("selected");
|
||||||
oTable.fnDraw();
|
oTable.fnDraw();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue