mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Update Tribute to 5.1.3 (#33424).
git-svn-id: http://svn.redmine.org/redmine/trunk@19785 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a4597c31d2
commit
09f6a5e53c
@ -1622,7 +1622,7 @@ module ApplicationHelper
|
|||||||
|
|
||||||
# Returns the javascript tags that are included in the html layout head
|
# Returns the javascript tags that are included in the html layout head
|
||||||
def javascript_heads
|
def javascript_heads
|
||||||
tags = javascript_include_tag('jquery-2.2.4-ui-1.12.1-ujs-5.2.3', 'tribute-3.7.3.min', 'application', 'responsive')
|
tags = javascript_include_tag('jquery-2.2.4-ui-1.12.1-ujs-5.2.3', 'tribute-5.1.3.min', 'application', 'responsive')
|
||||||
unless User.current.pref.warn_on_leaving_unsaved == '0'
|
unless User.current.pref.warn_on_leaving_unsaved == '0'
|
||||||
tags << "\n".html_safe + javascript_tag("$(window).on('load', function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
|
tags << "\n".html_safe + javascript_tag("$(window).on('load', function(){ warnLeavingUnsaved('#{escape_javascript l(:text_warn_on_leaving_unsaved)}'); });")
|
||||||
end
|
end
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<meta name="keywords" content="issue,bug,tracker" />
|
<meta name="keywords" content="issue,bug,tracker" />
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
<%= favicon %>
|
<%= favicon %>
|
||||||
<%= stylesheet_link_tag 'jquery/jquery-ui-1.12.1', 'tribute-3.7.3', 'application', 'responsive', :media => 'all' %>
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.12.1', 'tribute-5.1.3', 'application', 'responsive', :media => 'all' %>
|
||||||
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
||||||
<%= javascript_heads %>
|
<%= javascript_heads %>
|
||||||
<%= heads_for_theme %>
|
<%= heads_for_theme %>
|
||||||
|
|||||||
@ -1063,6 +1063,9 @@ function inlineAutoComplete(element) {
|
|||||||
requireLeadingSpace: true,
|
requireLeadingSpace: true,
|
||||||
selectTemplate: function (issue) {
|
selectTemplate: function (issue) {
|
||||||
return '#' + issue.original.id;
|
return '#' + issue.original.id;
|
||||||
|
},
|
||||||
|
noMatchTemplate: function () {
|
||||||
|
return '<span style:"visibility: hidden;"></span>';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
2
public/javascripts/tribute-3.7.3.min.js
vendored
2
public/javascripts/tribute-3.7.3.min.js
vendored
File diff suppressed because one or more lines are too long
2
public/javascripts/tribute-5.1.3.min.js
vendored
Normal file
2
public/javascripts/tribute-5.1.3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,27 +0,0 @@
|
|||||||
.tribute-container {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
height: auto;
|
|
||||||
max-height: 300px;
|
|
||||||
max-width: 500px;
|
|
||||||
overflow: auto;
|
|
||||||
display: block;
|
|
||||||
z-index: 999999; }
|
|
||||||
.tribute-container ul {
|
|
||||||
margin: 0;
|
|
||||||
margin-top: 2px;
|
|
||||||
padding: 0;
|
|
||||||
list-style: none;
|
|
||||||
background: #efefef; }
|
|
||||||
.tribute-container li {
|
|
||||||
padding: 5px 5px;
|
|
||||||
cursor: pointer; }
|
|
||||||
.tribute-container li.highlight {
|
|
||||||
background: #ddd; }
|
|
||||||
.tribute-container li span {
|
|
||||||
font-weight: bold; }
|
|
||||||
.tribute-container li.no-match {
|
|
||||||
cursor: default; }
|
|
||||||
.tribute-container .menu-highlighted {
|
|
||||||
font-weight: bold; }
|
|
||||||
34
public/stylesheets/tribute-5.1.3.css
Normal file
34
public/stylesheets/tribute-5.1.3.css
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
.tribute-container {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
height: auto;
|
||||||
|
max-height: 300px;
|
||||||
|
max-width: 500px;
|
||||||
|
overflow: auto;
|
||||||
|
display: block;
|
||||||
|
z-index: 999999;
|
||||||
|
}
|
||||||
|
.tribute-container ul {
|
||||||
|
margin: 0;
|
||||||
|
margin-top: 2px;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
background: #efefef;
|
||||||
|
}
|
||||||
|
.tribute-container li {
|
||||||
|
padding: 5px 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.tribute-container li.highlight {
|
||||||
|
background: #ddd;
|
||||||
|
}
|
||||||
|
.tribute-container li span {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.tribute-container li.no-match {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.tribute-container .menu-highlighted {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user