Fix coding standards
This commit is contained in:
parent
f37892c189
commit
6043b3c52b
@ -197,7 +197,7 @@ module AdditionalsQueriesHelper
|
||||
value_str = value.to_s
|
||||
|
||||
# 1.1: margin
|
||||
width = (value_str.length + value_str.chars.reject(&:ascii_only?).length) * 1.1 + 1
|
||||
width = (value_str.length + value_str.chars.count { |e| !e.ascii_only? }) * 1.1 + 1
|
||||
# 30: max width
|
||||
width > 30 ? 30 : width
|
||||
end
|
||||
|
@ -8,6 +8,7 @@ function openExternalLink() {
|
||||
}
|
||||
|
||||
/* exported setClipboardJS */
|
||||
/* global ClipboardJS */
|
||||
function setClipboardJS(element){
|
||||
var clipboard = new ClipboardJS(element);
|
||||
clipboard.on('success', function(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user