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