Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Neudert <marc.neudert@gmail.com>2017-07-20 18:50:05 +0300
committerStefan Giehl <stefan@piwik.org>2017-07-20 18:50:05 +0300
commit9c7d7ff1c842132bc8f3f0ff8c296eb7d3959c30 (patch)
tree06821b18af66dc55335897b87f27a1bf77e4249d /plugins/CoreHome/angularjs/common/directives/field-condition.js
parenteaf1e1536eb374c552d9648931903c431f0aae50 (diff)
removes usage of deprecated jQuery.size() (#11883)
Diffstat (limited to 'plugins/CoreHome/angularjs/common/directives/field-condition.js')
-rw-r--r--plugins/CoreHome/angularjs/common/directives/field-condition.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/field-condition.js b/plugins/CoreHome/angularjs/common/directives/field-condition.js
index 5d936c4480..d3fd46d2a2 100644
--- a/plugins/CoreHome/angularjs/common/directives/field-condition.js
+++ b/plugins/CoreHome/angularjs/common/directives/field-condition.js
@@ -59,7 +59,7 @@
scope.allValues = {};
angular.forEach(fieldNames, function (name) {
var actualField = $('.form-group [name=' + name + ']').first();
- if (actualField.size()) {
+ if (actualField.length) {
scope.allValues[name] = getValueFromElement(actualField);
actualField.on('change', function () {
scope.allValues[name] = getValueFromElement($(this));