onInitListener() { $(document).on('click', '#view-accounting .accounting-period', function() { const $yearPicker = $('#view-accounting .js-year-picker'); if ($yearPicker.is(':visible')) { $yearPicker.hide(); } else { $yearPicker.show(); } return false; }); }
function searchProducts () { $("#categories .btn-categories").removeClass("active"); var matcher = new RegExp($("#search").val(), 'gi'); $('.box').show().not(function(){ return matcher.test($(this).find('.name, .sku').text()) }).hide(); }
_.each(selected, function (ele) { $("#showSelectTitle").html('Select ' + ele.name + '<b class="caret"></b>'); $('#showSelectContent').on('click', 'li a',ele.clcFunc); $.when( utils.load({url: ele.url}) ).done(function (data) { ele.cb(data); }); $('#showSelect').show(); });
function searchCustomerOrders() { var matcher = new RegExp($("#holdCustomerOrderInput").val(), 'gi'); $('.customer-order').show().not(function(){ return matcher.test($(this).find('.customer_name').text()) }).hide(); }
btn.on('click', function(){ var othis = $(this), index = othis.index(); othis.addClass('xubox_tabnow').siblings().removeClass('xubox_tabnow'); main.eq(index).show().siblings().hide(); });
$('#add-user').click(function () { if (platform.app != 'Network Point of Sale Terminal') { $('.perms').show(); } $("#saveUser").get(0).reset(); $('#userModal').modal('show'); });
$('#smtp').change(function(){ if ($(this).is(':checked')) { $('#smtp_settings').hide(500); } else { $('#smtp_settings').show(500); } });
// Stop stream $("#stopStream").click(function(e){ $("#startStream").show(); $("#stopStream").hide(); stream.stop(); });
$('#rmv_logo').click(function () { $('#remove_logo').val("1"); $('#current_logo').hide(500); $(this).hide(500); $('#logoname').show(500); });
_.each(selected, function (ele) { $("#showSelectTitle").html('Select ' + ele.name + '<b class="caret"></b>'); $('#showSelectContent').on('click', 'li a',ele.clcFunc); $.when( utils.load({url: ele.url}) ).done(function (data) { ele.cb(data); }); $('#showSelect').show(); });
function searchOpenOrders() { var matcher = new RegExp($("#holdOrderInput").val(), 'gi'); $('.order').show().not(function(){ return matcher.test($(this).find('.ref_number').text()) }).hide(); }
btn.on('click', function(){ var othis = $(this), index = othis.index(); othis.addClass('xubox_tabnow').siblings().removeClass('xubox_tabnow'); main.eq(index).show().siblings().hide(); });
$('#rmv_img').click(function () { $('#remove_img').val("1"); $('#current_img').hide(500); $(this).hide(500); $('#imagename').show(500); });