Sha256: 56a600a813a531a0ff462b12d60cf962294e1144a16e0ee299c33380be2f9282

Contents?: true

Size: 685 Bytes

Versions: 129

Compression:

Stored size: 685 Bytes

Contents

HAL.Views.RequestHeaders = Backbone.View.extend({
  initialize: function(opts) {
    var self = this;
    this.vent = opts.vent;

    _.bindAll(this, 'updateRequestHeaders');

    this.vent.bind('app:loaded', function() {
      self.updateRequestHeaders();
    });
  },

  className: 'request-headers',

  events: {
    'blur textarea': 'updateRequestHeaders'
  },

  updateRequestHeaders: function(e) {
    var inputText = this.$('textarea').val() || '';
        headers = HAL.parseHeaders(inputText);
    HAL.client.updateDefaultHeaders(headers)
  },

  render: function() {
    this.$el.html(this.template());
  },

  template: _.template($('#request-headers-template').html())
});

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
pact_broker-2.53.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.52.2 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.52.1 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.52.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.51.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.50.1 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.50.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.49.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.48.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.47.1 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.47.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.46.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.45.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.44.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.43.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.42.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.41.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.40.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.39.0 vendor/hal-browser/js/hal/views/request_headers.js
pact_broker-2.38.1 vendor/hal-browser/js/hal/views/request_headers.js