PageSourceSearch

https://hochubusy.ru/catalog/view/javascript/ocdev_smart_cart/ocdev_smart_cart.js?v=3.0

js hochubusy.ru collected 2026-10-07 01:02:06 UTC 2,146 bytes, 42 lines download raw bytes

1$(function() {
2  $('#cart > .header__cart > button').removeAttr('data-toggle').attr('onclick', 'getOCwizardModal_smca(false,\'' + 'load' + '\');');
3  $('#right-carter').attr('onclick', 'getOCwizardModal_smca(false,\'' + 'load' + '\');');
4  $('.cart-name').attr('onclick', 'getOCwizardModal_smca(false,\'' + 'load' + '\');');
5  $('.cart-totaliti').attr('onclick', 'getOCwizardModal_smca(false,\'' + 'load' + '\');');
6});
7
8function buttonManipulate() {
9  $.ajax({
10    type: 'get',
11    url:  'index.php?route=extension/module/ocdev_smart_cart/cartProducts',
12    dataType: 'json',
13    cache: false,
14    success: function(json) {
15      if (json['error']) {
16        $('#smca-modal-body > .modal-footer > input.go-button-bottom, #smca-modal-body > .modal-footer > input.save-button-bottom, #smca-ajax-products').remove();
17        $('#smca-modal-data').html('<div id="smca-modal-data-empty">' + json['error'] + '</div>');
18      }
19      if (json['cart_products']) {
20        $.each(json['cart_products'], function(i, value) {
21          $('[onclick="getOCwizardModal_smca(\'' + value + '\',\'' + 'add' + '\');"]')
22          .html(json['text_in_cart'])
23          .attr('onclick', 'getOCwizardModal_smca(\'' + value + '\',\'' + 'load' + '\');');
24          $('[onclick="getOCwizardModal_smca(\'' + value + '\',\'' + 'add_option' + '\');"]')
25          .html(json['text_in_cart'])
26          .attr('onclick', 'getOCwizardModal_smca(\'' + value + '\',\'' + 'load_option' + '\');');
27        });
28      }
29      if (json['cart_products_vs_options']) {
30        $.each(json['cart_products_vs_options'], function(i, value) {
31          $('[onclick="getOCwizardModal_smca(\'' + value + '\',\'' + 'add' + '\');"]')
32          .html(json['text_in_cart']);
33          $('[onclick="getOCwizardModal_smca(\'' + value + '\',\'' + 'add_option' + '\');"]')
34          .html(json['text_in_cart_vs_options']);
35        });
36      }
37      $('#cart-total').html(json['total']);
38      $('#summa-cart').html(json['total']);
39      $('#cart > .header__cart > .header__cart-text > .cart-totaliti > #cart-totaliti').html(json['totaliti']);
40    }
41  });
42}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.