Sha256: c3c37831db98b4276b808233d7c0c30fd3fb733a6497c7f7baa9dd855d5f746c
Contents?: true
Size: 1.72 KB
Versions: 4
Compression:
Stored size: 1.72 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_module') + javascript_include_tag('redmine_extensions/blocking_polyfill') + javascript_include_tag('redmine_extensions/blocking_render') + javascript_include_tag('redmine_extensions/blocking_utils') + javascript_include_tag('redmine_extensions/blocking_dynamic_loading') + ## 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/redmine_extensions') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems