Sha256: ea8795e52836283d0f0550795d2337edce63efe60f4014022c1d2717344f9cdc

Contents?: true

Size: 658 Bytes

Versions: 82

Compression:

Stored size: 658 Bytes

Contents

HAL.Views.ResponseHeaders = Backbone.View.extend({
  initialize: function(opts) {
    this.vent = opts.vent;
  },

  events: {
    'click .follow': 'followLink'
  },

  className: 'response-headers',

  followLink: function(e) {
    e.preventDefault();
    var $target = $(e.currentTarget);
    var uri = $target.attr('href');
    window.location.hash = uri;
  },

  render: function(e) {
    this.$el.html(this.template({
      status: {
        code: e.jqxhr.status,
        text: e.jqxhr.statusText
      },
      headers: HAL.parseHeaders(e.jqxhr.getAllResponseHeaders())
    }));
  },

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

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
pact_broker-2.68.1 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.68.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.67.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.66.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.65.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.64.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.63.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.62.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.61.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.60.1 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.60.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.59.2 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.59.1 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.59.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.58.3 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.58.2 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.58.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.57.0 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.56.1 vendor/hal-browser/js/hal/views/response_headers.js
pact_broker-2.56.0 vendor/hal-browser/js/hal/views/response_headers.js