Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //js file
- Template.workingarea.events({
- 'click div.onoffswitch input[type="radio"]': function (event) {
- var workingarea = $(event.currentTarget).closest("div.workingarea");
- var id = $(event.currentTarget).attr("data-id");
- var tables = workingarea.find("div.grouped-table");
- $.each(tables, function () {
- if ($(this).is(":visible")) {
- $(this).hide({
- effect: "drop",
- duration: "fast",
- complete: function () {
- $("#" + id).show("drop", {}, "fast");
- }
- });
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment