Sha256: 8ebccffb5a2753ce3e91ee46b01b33a8982506dd0801944ab7d7fd9bae4e2d80

Contents?: true

Size: 515 Bytes

Versions: 4

Compression:

Stored size: 515 Bytes

Contents

L.baseURL = "/resource";
OML = {
  data_sources: {},
  widgets: {},
  window_size: {width: null, height: null}
};
  
var OHUB = {};
_.extend(OHUB, Backbone.Events);

$(window).resize(function(x) {
  var w = $(window);
  var width = w.width();
  var height = w.height();
  var current = OML.window_size;
  
  if (current.width != width || current.height != height) {
    current.width = width; current.height = height;
    OHUB.trigger('window.resize', current);
    OHUB.trigger('layout.resize', {});
  }
});      

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omf_web-1.0.0 share/htdocs/theme/abstract/abstract.js
omf_web-0.9.9 share/htdocs/theme/abstract/abstract.js
omf_web-0.9.8 share/htdocs/theme/abstract/abstract.js
omf_web-0.9.7 share/htdocs/theme/abstract/abstract.js