Sha256: 679beb9bd085f25732f475547aa46b3f04e0b36d9b495f91f463dcd35d98016e

Contents?: true

Size: 314 Bytes

Versions: 8

Compression:

Stored size: 314 Bytes

Contents

Trestle.refreshContext = function(context) {
  var url = context.data('context');

  $.get(url, function(data) {
    context.html(data);
    $(Trestle).trigger('init', context);
  });
};

Trestle.refreshMainContext = function() {
  var context = $('.app-main[data-context]');
  Trestle.refreshContext(context);
};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-0.8.13 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.12 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.11 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.10 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.9 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.8 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.7 app/assets/javascripts/trestle/core/_contexts.js
trestle-0.8.6 app/assets/javascripts/trestle/core/_contexts.js