Sha256: 701f16792e2f4fcc0db21c4ac8c3ea2af947b147dbbd130041d54cb673307306
Contents?: true
Size: 513 Bytes
Versions: 85
Compression:
Stored size: 513 Bytes
Contents
Spree.Views.Tables.ReturnItems = Backbone.View.extend({ initialize: function() { if(this.$el.hasClass('return-items-table')) { var tfoot = document.createElement('tfoot') new Spree.Views.Tables.SelectableTable.SumReturnItemAmount({el: tfoot, model: this.model}); this.$el.append(tfoot); this.$el.find('input, select').not('.add-item').on('change', function(e) { $(this).closest('tr').find('input.add-item').prop('checked', true) .change(); }); } }, })
Version data entries
85 entries across 85 versions & 1 rubygems