Sha256: c8263c412e32631d77a710d6e7df6c6f5a374db008526f073a6d2b0826fb15e4

Contents?: true

Size: 1.35 KB

Versions: 4

Compression:

Stored size: 1.35 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"cms/new_content_button.js;FI"
pathname;TI"~/usr/local/rvm/gems/ruby-2.0.0-p481/bundler/gems/browsercms-a0b88590276e/app/assets/javascripts/cms/new_content_button.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+”%TI"length;TidI"digest;TI"%18f5be1745709dc229245f079e4e1296;FI"source;TI"d// Sets up the Cms namespace for other modules.
var Cms = Cms || {};

Cms.NewContentButton = function() {

};

// Setting the 'New Page' path should update the global menu
Cms.NewContentButton.prototype.addPagePath = function(path) {
  $('#new-content-button').attr('href', path);
  $('.add-page-button').attr('href', path);
};

Cms.NewContentButton.prototype.addSectionPath = function(path) {
  $('.add-link-button').attr('href', path);
};

Cms.NewContentButton.prototype.addLinkPath = function(path) {
  $('.add-section-button').attr('href', path);
};

Cms.NewContentButton.prototype.updateButtons = function(selectedElement) {
  this.addPagePath(selectedElement.data('add-page-path'));
  this.addLinkPath(selectedElement.data('add-link-path'));
  this.addSectionPath(selectedElement.data('add-section-path'));
};

var newContentButton = new Cms.NewContentButton();
;TI"required_assets_digest;TI"%0f6e3aee333ad334219f5c6aaf2dbac8;FI"
_version;TI"%5ef14a844324cba3e114bd0123f88a5e;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
bcms_spree-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/541d9fc43f75111e069fc71f3c0f783f
bcms_spree-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/a0ba0e217f82c97189697ed7e7f9cd0d
bcms_spree-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/541d9fc43f75111e069fc71f3c0f783f
bcms_spree-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/a0ba0e217f82c97189697ed7e7f9cd0d