Sha256: e0282939694100cbd77a3eaf0934e07b255e49c82c3e79d613381f00a9f2746f

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

$('#promote_buyer_buyer_id').dropdown({
  apiSettings: {
    url: '/buyers/search?q={query}',
    beforeSend: function(settings) {
      return settings;
    }
  },
  fields: {
    name: 'name_detail',
    value: 'id'
  },
  filterRemoteData: false,
  saveRemoteData: true,
  minCharacters: 2
});

$('#promote_buyer_promote_id').dropdown({
  apiSettings: {
    url: '/admin/promotes/search?q={query}',
    beforeSend: function(settings) {
      return settings;
    }
  },
  fields: {
    name: 'name',
    value: 'id'
  },
  filterRemoteData: false,
  saveRemoteData: true,
  minCharacters: 2
});

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/admin/promote_carts/edit.js
rails_trade-0.0.2 app/assets/javascripts/controllers/trade/admin/promote_buyers/edit.js
rails_trade-0.0.1 app/assets/javascripts/controllers/rails_trade_admin/promote_buyers/edit.js
rails_trade-0.0.1 app/assets/javascripts/controllers/rails_trade_admin/promote_buyers/new.js