Sha256: 8c71f9311474336328dedbc4ccebb6d1fd174a6fce5a5205174755b8b3db18df
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
module RedmineExtensions class Hooks < Redmine::Hook::ViewListener if defined?(EasyExtensions) if EasyExtensions.try(:deferred_js) ### DEFERRED JAVASCRIPTS ### def easy_extensions_blocking_javascripts_hook(context = {}) context[:template].require_asset('redmine_extensions/blocking') end def easy_extensions_javascripts_hook(context = {}) context[:template].require_asset('redmine_extensions/application') end else ### JAVASCRIPTS IN HEADER ### def easy_extensions_javascripts_hook(context = {}) context[:template].require_asset('redmine_extensions/blocking') context[:template].require_asset('redmine_extensions/application') end end else ### JAVASCRIPTS IN REDMINE ### def view_layouts_base_html_head(context = {}) ## BLOCKING ## javascript_include_tag('redmine_extensions/blocking_namespace') + javascript_include_tag('redmine_extensions/blocking_schedule') + javascript_include_tag('redmine_extensions/blocking_polyfill') + javascript_include_tag('redmine_extensions/blocking_render') + javascript_include_tag('redmine_extensions/blocking_utils') + ## DEFERRED ## javascript_include_tag('redmine_extensions/easy_togglers') + javascript_include_tag('redmine_extensions/jquery.entityarray') + javascript_include_tag('redmine_extensions/render_polyfill') + javascript_include_tag('redmine_extensions/dynamic_loading') + javascript_include_tag('redmine_extensions/redmine_extensions') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine_extensions-0.2.5 | lib/redmine_extensions/hooks.rb |