Sha256: 9cd5306026b81fb06ec29b046369f1d068a6d8fb96ecb94c8c358b27503f007e

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1350314051.6340995:@value"…{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"admin/orders/edit_form.js;FI"
pathname;FI"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/orders/edit_form.js;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"length;FiI"digest;F"%a72a7c022d87bd651da98c1f1efdcde9I"source;FI"$(document).ready(function() {
  $.each($('td.qty input'), function(i, input) {

    $(input).on('change', function() {

      var id = "#" + $(this).attr('id').replace("_quantity", "_id");
      console.log($(this))
      console.log($(id))

      jQuery.post("/admin/orders/" + $('input#order_number').val() + "/line_items/" + $(id).val(),
        { _method: "put", "line_item[quantity]": $(this).val()},
        function(resp) {
          $('#order-form-wrapper').html(resp.responseText);
      })
    })
  })
});

;FI"dependency_digest;F"%e8cf4937eccf496000ae4b9c57af457bI"required_paths;F[I"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/orders/edit_form.js;FI"dependency_paths;F[{I"	path;FI"t/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/orders/edit_form.js;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"digest;F"%a72a7c022d87bd651da98c1f1efdcde9I"
_version;F"%7270767b2a9e9fff880aa5de378ca791

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datashift_spree-0.2.1 spec/sandbox/tmp/cache/assets/C29/1F0/sprockets%2F244ca772a75a15a9579e734732338339