diff --git a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js index 6820c9deb..7d097cc52 100644 --- a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js +++ b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js @@ -80,9 +80,9 @@ // maxlength check if ( options.maxlength ) { this.bind('keydown', function (e) { - // check maxlength - length = $(e.target).text().length + var field = $(e.target) + var length = $(e.target).text().length if ( length >= options.maxlength ) { switch ( e.keyCode ) { case 8: // backspace @@ -111,13 +111,13 @@ break; } default: - $(e.target).addClass('invalid') + field.addClass('invalid') e.preventDefault() } } else { - if ( $(e.target).hasClass('invalid') ) { - $(e.target).removeClass('invalid') + if ( field.hasClass('invalid') ) { + field.removeClass('invalid') } } }) diff --git a/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco index 503610bb3..9075a40a0 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/title.jst.eco @@ -1,4 +1,4 @@ -

<%= @P( @ticket.title ) %>

+

<%= @P( @ticket.title ) %>

<%- @C('ticket_hook') %> <%- @ticket.number %> - <%- @T('created') %> ? <% if !@isCustomer && @ticket.escalation_time: %> - <%- @T('escalation') %> ?<% end %> diff --git a/app/assets/javascripts/app/views/widget/organization.jst.eco b/app/assets/javascripts/app/views/widget/organization.jst.eco index 31e71d058..4e04bf772 100644 --- a/app/assets/javascripts/app/views/widget/organization.jst.eco +++ b/app/assets/javascripts/app/views/widget/organization.jst.eco @@ -8,7 +8,7 @@
<%- @L( @P( @organization[row.name] ) ) %>
<% else: %>
-
<%= @organization[row.name] %>
+
<%= @organization[row.name] %>
<% end %> <% end %> diff --git a/app/assets/javascripts/app/views/widget/user.jst.eco b/app/assets/javascripts/app/views/widget/user.jst.eco index e309f0a82..fbf22f122 100644 --- a/app/assets/javascripts/app/views/widget/user.jst.eco +++ b/app/assets/javascripts/app/views/widget/user.jst.eco @@ -17,7 +17,7 @@ <% else: %>
<%- @Ti( row.display ) %>
-
<%= @user[row.name] %>
+
<%= @user[row.name] %>
<% end %> diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index ba5faa8f7..51016e150 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -3429,23 +3429,23 @@ footer { margin-top: 1px; } -.textbox[contenteditable] { +[contenteditable] { display: block; white-space: pre; padding: 1px; outline-style: none; } -.textbox[contenteditable]:hover, .textbox[contenteditable]:focus { +[contenteditable]:hover, [contenteditable]:focus { padding: 0; border: 1px dotted hsl(145,51%,45%); border-radius: 3px; } -.textbox[contenteditable].invalid { +[contenteditable].invalid { padding: 0; border: 1px dotted #F92; border-radius: 3px; } -.textbox > .placeholder { +[contenteditable] > .placeholder { color: #999; } /*