Class: RedmineExtensions::Hooks

Inherits:
Redmine::Hook::ViewListener
  • Object
show all
Defined in:
lib/redmine_extensions/hooks.rb

Instance Method Summary collapse

Instance Method Details

#easy_extensions_blocking_javascripts_hook(context = {}) ⇒ Object

DEFERRED JAVASCRIPTS ###



8
9
10
# File 'lib/redmine_extensions/hooks.rb', line 8

def easy_extensions_blocking_javascripts_hook(context = {})
  context[:template].require_asset('redmine_extensions/blocking')
end

#easy_extensions_javascripts_hook(context = {}) ⇒ Object

JAVASCRIPTS IN HEADER ###



17
18
19
# File 'lib/redmine_extensions/hooks.rb', line 17

def easy_extensions_javascripts_hook(context = {})
  context[:template].require_asset('redmine_extensions/application')
end

#view_layouts_base_html_head(context = {}) ⇒ Object

JAVASCRIPTS IN REDMINE ###



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/redmine_extensions/hooks.rb', line 24

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