Minkels 48U 19" patch-rack, white, 2 x Chassis, 2 x side panels Used, with possible scratches (2024)

'); }, 500); setTimeout(function () { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { jQuery(this).addClass('mageworx-option-memoryqty'); } }); }, 2000); jQuery(document).on("keyup change", ".mageworx-option-memoryqty", function () { var that = this var glb = 0; var flag = 0; var qty = jQuery(that).val(); if (qty <= 0) { jQuery(that).removeClass('mage-error'); return false; } var maxlimit = jQuery(".magepac-scrum-box-qty .mini-qty-control").last().attr('data-control-qty'); jQuery('.mage-error-some-complex').remove(); jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { glb += parseInt(jQuery(this).val()); } }); if (glb > maxlimit) { flag = 1; jQuery('#' + jQuery(that).attr('id') + '-error').each(function (index) { jQuery(this).remove(); }); jQuery(that).parent().find('#' + jQuery(that).attr('id') + '-error').remove(); jQuery('.mage-error-some-complex').remove(); jQuery(that).addClass('mage-error'); jQuery(that).after('

'+messagetext()+jQuery('#custom-attribute-memorycomputer').val() + '

'); return false; } else { jQuery(".magepac-scrum-box-qty .mini-qty-control").each(function (index) { if (jQuery(this).attr('data-control-qty') == glb) { flag = 1; } }); if (flag != 1) { jQuery('#' + jQuery(that).attr('id') + '-error').each(function (index) { jQuery(this).remove(); }); jQuery(that).addClass('mage-error'); jQuery('.mage-error-some-complex').remove(); jQuery(that).after('

'+messagetext()+jQuery('#custom-attribute-memorycomputer').val() + '

'); return false; } } if (flag == 1) { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { jQuery(this).removeClass('mage-error'); } }); } }); jQuery(document).on("click", 'input[type="checkbox"]', function () { var that = jQuery(this).parent().find('.label-qty input'); if (that.data('optiontype') == 'memory') { var glb = 0; var flag = 0; var what = 0; var maxlimit = jQuery(".magepac-scrum-box-qty .mini-qty-control").last().attr('data-control-qty'); if (jQuery(this).prop("checked") == true) { setTimeout(function () { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { glb += parseInt(jQuery(this).val()); } }); if (glb > maxlimit) { getloopremoveclass(); getupdatemessage(that); } else if (glb == maxlimit) { jQuery('.mage-error-some-complex').remove(); getloopremoveclass(); } else { jQuery(".magepac-scrum-box-qty .mini-qty-control").each(function (index) { if (jQuery(this).attr('data-control-qty') == glb) { flag = 1; } }); if (flag != 1) { getloopremoveclass(); getupdatemessage(that); } } if (flag == 1) { jQuery('.mage-error-some-complex').remove(); getloopremoveclass(); } }, 1000); } else if (jQuery(this).prop("checked") == false) { setTimeout(function () { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { glb += parseInt(jQuery(this).val()); } }); if (glb > maxlimit) { getloopremoveclass(); // if (jQuery('.mage-error-some-complex').length > 0) { // return false; // } jQuery('.mage-error-some-complex').remove(); jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { what = jQuery(this); if (jQuery(this).val() > 0) { getupdatenotmessage(what); return false; } } }); } else if (glb == maxlimit) { jQuery('.mage-error-some-complex').remove(); getloopremoveclass(); } else { that.next().remove(); that.removeClass('mage-error'); jQuery('.mage-error-some-complex').remove(); jQuery(".magepac-scrum-box-qty .mini-qty-control").each(function (index) { if (jQuery(this).attr('data-control-qty') == glb) { flag = 1; } }); if (flag != 1) { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { what = jQuery(this); if (jQuery(this).val() > 0) { getupdatenotmessage(what); return false; } } }); } } if (flag == 1) { getloopremoveclass(); } }, 1000); } } }); jQuery(document).on("click", 'input[type="checkbox"] ,input[type="radio"] ', function (){ getQuantityUpdate(jQuery(this)); }); jQuery(document).on("change", '.mageworx-option-qty', function (){ getQuantityUpdate(jQuery(this)); }); function getQuantityUpdate(that) { var cnt = 0; var what =''; var Id =''; var arrayId = []; setTimeout(function(){ jQuery('#product-options-wrapper .options-list .admin__field-option input[type="checkbox"]').each(function (index) { Id =jQuery(this).parent().parent().parent().parent().data('option_id'); if(jQuery.inArray(Id, arrayId) == -1) { console.log('loopId1:'+Id); // console.log("is in array"); var counter =0; jQuery('input[name="options['+Id+'][]"]').each(function (index) { cnt=index; what =jQuery(this); Qty=what.parent().find('.label-qty input').val(); if(jQuery(what).prop("checked") == true) { counter++; jQuery(".innercmssidebar .list-item li[data-id="+Id+"]").find('p').each(function (ind) { // console.log('cnt:'+counter+':ind+'+ind); //alert('cnt:'+counter+':ind+'+ind); if(counter ==parseInt(ind) + parseInt(1)){ // console.log('text:'+jQuery(this).text()); //alert(jQuery(this).text()); jQuery(this).html(''+Qty+' x '+jQuery(this).text()); } }); } }); } else { //console.log("is not in array"); } arrayId.push(Id); //console.log('arrayId'+arrayId); }); // jQuery('input[name="options['+Id+'][]"]').each(function (index) { // cnt=index; // what =jQuery(this) // Qty=what.parent().find('.label-qty input').val(); // if(jQuery(what).prop("checked") == true) { counter++; // jQuery(".innercmssidebar .list-item li[data-id="+Id+"]").find('p').each(function (ind) { //alert('cnt:'+counter+':ind+'+ind); // if(counter ==parseInt(ind) + parseInt(1)){//alert(jQuery(this).text()); // jQuery(this).html(jQuery(this).text()+' Qty:'+Qty+''); // } // }); // } // }); }, 1000); } function getloopremoveclass() { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { jQuery(this).removeClass('mage-error'); } }); } function getupdatemessage(that) { jQuery('.mage-error-some-complex').remove(); that.addClass('mage-error'); that.after('

'+messagetext()+jQuery('#custom-attribute-memorycomputer').val() + '

'); jQuery(".mage-error-some-complex").prev('input').focus(); } function getupdatenotmessage(what) { what.addClass('mage-error'); what.after('

'+messagetext()+jQuery('#custom-attribute-memorycomputer').val() + '

'); jQuery(".mage-error-some-complex").prev('input').focus(); } function getupdatecartmessage() { jQuery(".mageworx-option-qty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { if(jQuery(this).val() > 0){ jQuery(this).addClass('mage-error'); jQuery(this).after('

'+messagetext()+jQuery('#custom-attribute-memorycomputer').val() + '

'); jQuery(".mage-error-some-complex").prev('input').focus(); } } }); } function messagetext(){ return'Please enter the correct amount of memory. For your current configuration you can choose from:'; } /* for stick the div */ jQuery(window).scroll(function(event){ var window_top = jQuery(window).scrollTop(); var div_top = jQuery('.sticky-scrol-postion').offset().top; if (window_top >=1000) { jQuery('.innercmssidebar').addClass('stick'); } else { jQuery('.innercmssidebar').removeClass('stick'); } }); //$(window).scroll(function () { // var scroll = $(window).scrollTop(); // if (scroll >= 570) { // $(".innercmssidebar").addClass("sidebar_stick"); // } else { // $(".innercmssidebar").removeClass("sidebar_stick"); // } // if(scroll >= 1800){ // $('body').addClass("footerfixed"); // } else { // $('body').removeClass("footerfixed"); // } // }); jQuery(document).on("click", "#product-addtocart-button", function () { if (jQuery('.mage-error-some-complex').length > 0) { jQuery(".mage-error-some-complex").prev('input').focus(); return false; } var flag =0; var glb =0; var flagmemo = 0; var maxlimit = jQuery(".magepac-scrum-box-qty .mini-qty-control").last().attr('data-control-qty'); jQuery(".mageworx-option-memoryqty").each(function (index) { if (jQuery(this).attr('data-optiontype') == 'memory') { glb += parseInt(jQuery(this).val()); flagmemo =1; } }); if(flagmemo == 1){ if (glb > maxlimit) { getloopremoveclass(); getupdatecartmessage(); return false; } else if (glb == maxlimit) { jQuery('.mage-error-some-complex').remove(); getloopremoveclass(); } else { if(glb > 0){ jQuery(".magepac-scrum-box-qty .mini-qty-control").each(function (index) { if (jQuery(this).attr('data-control-qty') == glb) { flag = 1; } }); } else { flag =1;} if (flag != 1) { getloopremoveclass(); getupdatecartmessage(); return false; } } if (flag == 1) { jQuery('.mage-error-some-complex').remove(); getloopremoveclass(); } } }); });});

Minkels 48U 19" patch-rack, white, 2 x Chassis, 2 x side panels Used, with possible scratches (2024)

References

Top Articles
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 5924

Rating: 4 / 5 (51 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.