diff options
author | sgiehl <stefan@piwik.org> | 2018-12-03 23:38:52 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2018-12-03 23:38:52 +0300 |
commit | 4da5b745e5f835edaf636170c6791bde5ca58c08 (patch) | |
tree | 5f002448a08018359a7389926159f28c6939ed2c /plugins/CoreHome/angularjs/common | |
parent | 168a035b9d76012947bba615b32efe025dcf2263 (diff) |
cs/ws
Diffstat (limited to 'plugins/CoreHome/angularjs/common')
4 files changed, 6 insertions, 7 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/field-condition.js b/plugins/CoreHome/angularjs/common/directives/field-condition.js index d3fd46d2a2..8a215716a4 100644 --- a/plugins/CoreHome/angularjs/common/directives/field-condition.js +++ b/plugins/CoreHome/angularjs/common/directives/field-condition.js @@ -28,10 +28,9 @@ function getValueFromElement(element) { if (element.attr('type') === 'checkbox') { - return element.is(':checked') + return element.is(':checked'); } else if (element.attr('type') === 'radio') { - var name = element.attr('name'); - return $('.form-group [name=' + name + ']:checked').val() + return $('.form-group [name=' + element.attr('name') + ']:checked').val(); } else if (element.prop('tagName').toLowerCase() === 'select') { var name = element.val(); if (name.indexOf('string:') === 0) { @@ -64,7 +63,7 @@ actualField.on('change', function () { scope.allValues[name] = getValueFromElement($(this)); evaluate(scope, condition, element); - }) + }); } }); diff --git a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js b/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js index 1744f9e622..59a2062090 100644 --- a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js +++ b/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js @@ -52,7 +52,7 @@ $(clickElement).one('click', onClickHandler); $(clickElement).css({ cursor: 'pointer' - }) + }); } }; } diff --git a/plugins/CoreHome/angularjs/common/directives/string-to-number.js b/plugins/CoreHome/angularjs/common/directives/string-to-number.js index 9637c5b06d..10b6fa3841 100644 --- a/plugins/CoreHome/angularjs/common/directives/string-to-number.js +++ b/plugins/CoreHome/angularjs/common/directives/string-to-number.js @@ -24,5 +24,5 @@ }); } }; - }) + }); })(); diff --git a/plugins/CoreHome/angularjs/common/services/piwik-url.js b/plugins/CoreHome/angularjs/common/services/piwik-url.js index 130500c65d..b7e4e52f14 100644 --- a/plugins/CoreHome/angularjs/common/services/piwik-url.js +++ b/plugins/CoreHome/angularjs/common/services/piwik-url.js @@ -16,7 +16,7 @@ var model = { getSearchParam: getSearchParam - } + }; return model; |