Sha256: dafce76256c45b7723bb37bf76180a27189028ae5633560596ca9826188f36c7

Contents?: true

Size: 639 Bytes

Versions: 24

Compression:

Stored size: 639 Bytes

Contents

module Admin::LayoutsHelper
  def layout_edit_javascripts
    <<-CODE
    var tagReferenceWindows = {};
    function loadTagReference() {
      var pageType = 'Page';
      if (!tagReferenceWindows[pageType])
        tagReferenceWindows[pageType] = new Popup.AjaxWindow("#{admin_reference_path('tags')}?class_name=" + encodeURIComponent(pageType), {reload: false});
      var window = tagReferenceWindows[pageType];
      if('Page' != pageType) {
        $('tag_reference_link').highlight();
        window.show();
      } else {
        window.toggle();
      }
      lastPageType = pageType;
      return false;
    }
    CODE
  end
end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
trusty-cms-1.0.0 app/helpers/admin/layouts_helper.rb
radiant-1.1.4 app/helpers/admin/layouts_helper.rb
radiant-1.1.3 app/helpers/admin/layouts_helper.rb
radiant-1.1.2 app/helpers/admin/layouts_helper.rb
radiant-1.1.1 app/helpers/admin/layouts_helper.rb
radiant-1.1.0 app/helpers/admin/layouts_helper.rb
radiant-1.1.0.rc1 app/helpers/admin/layouts_helper.rb
radiant-1.1.0.beta app/helpers/admin/layouts_helper.rb
radiant-1.0.1 app/helpers/admin/layouts_helper.rb
radiant-1.1.0.alpha app/helpers/admin/layouts_helper.rb
radiant-1.0.0 app/helpers/admin/layouts_helper.rb
radiant-1.0.0.rc5 app/helpers/admin/layouts_helper.rb
radiant-1.0.0.rc4 app/helpers/admin/layouts_helper.rb
radiant-1.0.0.rc3 app/helpers/admin/layouts_helper.rb
kajam-1.0.3.rc2 app/helpers/admin/layouts_helper.rb
radiant-1.0.0.rc2 app/helpers/admin/layouts_helper.rb
radiant-1.0.0.rc1 app/helpers/admin/layouts_helper.rb
radiantcms-couchrest_model-0.1.4 app/helpers/admin/layouts_helper.rb
radiantcms-couchrest_model-0.1.3 app/helpers/admin/layouts_helper.rb
radiantcms-couchrest_model-0.1.2 app/helpers/admin/layouts_helper.rb