Fixes code analysis issues

This commit is contained in:
Morris Jobke 2016-02-17 15:19:42 +01:00
parent 9c1248521a
commit d55cfb4f89
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*
*/
/* global Handlebars */
/* global Handlebars, escapeHTML */
(function(OC, OCA) {
var TEMPLATE =
@ -297,7 +297,7 @@
$field.tooltip('show');
$field.addClass('error');
}
var limitExceeded = (len > this._commentMaxLength);
$field.toggleClass('error', limitExceeded);
$submitButton.prop('disabled', limitExceeded);