this.each( function () { if ($(this).data('colpickId')) { $('#' + $(this).data('colpickId')).hide(); } })
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(); }
btn.on('click', function(){ var othis = $(this), index = othis.index(); othis.addClass('xubox_tabnow').siblings().removeClass('xubox_tabnow'); main.eq(index).show().siblings().hide(); });
function searchCustomerOrders() { var matcher = new RegExp($("#holdCustomerOrderInput").val(), 'gi'); $('.customer-order').show().not(function(){ return matcher.test($(this).find('.customer_name').text()) }).hide(); }
$('#app').change(function () { if ($(this).find('option:selected').text() == 'Network Point of Sale Terminal') { $('#net_settings_form').show(500); $('#settings_form').hide(500); macaddress.one(function (err, mac) { $("#mac").val(mac); }); } else { $('#net_settings_form').hide(500); $('#settings_form').show(500); } });
// Stop stream $("#stopStream").click(function(e){ $("#startStream").show(); $("#stopStream").hide(); stream.stop(); });
$('#categories').on('click', '.btn-categories', function(){ if (this.id == 'all') { $('#parent > div').fadeIn(450); } else { var $el = $('.' + this.id).fadeIn(450); $('#parent > div').not($el).hide(); } $("#categories .btn-categories").removeClass("active"); $(this).addClass('active'); });
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; }); }
$('#smtp').change(function(){ if ($(this).is(':checked')) { $('#smtp_settings').hide(500); } else { $('#smtp_settings').show(500); } });
btn.on('click', function(){ var othis = $(this), index = othis.index(); othis.addClass('xubox_tabnow').siblings().removeClass('xubox_tabnow'); main.eq(index).show().siblings().hide(); });
function searchOpenOrders() { var matcher = new RegExp($("#holdOrderInput").val(), 'gi'); $('.order').show().not(function(){ return matcher.test($(this).find('.ref_number').text()) }).hide(); }