Sha256: 217dd3b0f5c2a82f9e00fc4b7313ee87c7d6fec1b4bf91f6ee6092b58e0779a2
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 Bytes
Contents
"use strict"; var ITEM_QUANTITY_PICKERS = {}; var _activate_q_picker = function(onChange) { $('.quantity_picker').each(function() { var $t = $(this); if ($t.data('initalized') == '1') return; $t.data('initalized', '1'); var id = $t.data('id'); var ip = new ItemQuantityPicker(this); ITEM_QUANTITY_PICKERS[ id ] = ip; if (onChange !== undefined) { ip.on_change(onChange); } }); }; $(document).ready(function() { // alert(ItemQuantityPicker); _activate_q_picker(); });
Version data entries
6 entries across 6 versions & 1 rubygems