Skip to content
Snippets Groups Projects
Commit 3a97a0ad authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22475 from owncloud/fix-js-issues

Fixes code analysis issues
parents 8798f85e d55cfb4f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment