Skip to content

Commit 598928a

Browse files
committed
bump to version 3.3.0
1 parent 5ff8db3 commit 598928a

15 files changed

+769
-809
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
var pkg = require('./package.json');
22-
var AV_CONFIG_VERSION = '3.2.0';
22+
var AV_CONFIG_VERSION = '3.3.0';
2323

2424
//Using exclusion patterns slows down Grunt significantly
2525
//instead of creating a set of patterns like '**/*.js' and '!**/node_modules/**'

avConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* in this same file, which you might want to edit and tune if needed.
2121
*/
2222

23-
var AV_CONFIG_VERSION = '3.2.0';
23+
var AV_CONFIG_VERSION = '3.3.0';
2424

2525
var avConfigData = {
2626
// the base url path for ajax requests, for example for sending ballots or

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "avCommon",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"main": "index.html",
55
"ignore": [
66
"tests",

dist/appCommon-v3.0.1.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
108108
return fields;
109109
}, authmethod.getLoginFields = function(viewEventData) {
110110
var fields = authmethod.getRegisterFields(viewEventData);
111-
("sms" === viewEventData.auth_method || "email" === viewEventData.auth_method) && fields.push({
111+
"sms" !== viewEventData.auth_method && "email" !== viewEventData.auth_method || fields.push({
112112
name: "code",
113113
type: "code",
114114
required: !0,
@@ -175,7 +175,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
175175
attrs.code && attrs.code.length > 0 && (scope.code = attrs.code), scope.email = null,
176176
attrs.email && attrs.email.length > 0 && (scope.email = attrs.email), scope.isAdmin = !1,
177177
autheventid === adminId && (scope.isAdmin = !0), scope.resendAuthCode = function(field) {
178-
if (!scope.sendingData && "sms" === scope.method && -1 !== scope.telIndex && !scope.form["input" + scope.telIndex].$invalid) {
178+
if (!scope.sendingData && "sms" === scope.method && scope.telIndex !== -1 && !scope.form["input" + scope.telIndex].$invalid) {
179179
field.value = "";
180180
var data = {};
181181
data.tlf = scope.telField.value, scope.sendingData = !0, Authmethod.resendAuthCode(data, autheventid).success(function(rcvData) {
@@ -217,7 +217,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
217217
return scope.stateData[el.name] ? (el.value = scope.stateData[el.name], el.disabled = !0) : (el.value = null,
218218
el.disabled = !1), "email" === el.type && null !== scope.email ? (el.value = scope.email,
219219
el.disabled = !0) : "code" === el.type && null !== scope.code ? (el.value = scope.code.trim().toUpperCase(),
220-
el.disabled = !0) : "tlf" === el.type && "sms" === scope.method && (null !== scope.email && -1 === scope.email.indexOf("@") && (el.value = scope.email,
220+
el.disabled = !0) : "tlf" === el.type && "sms" === scope.method && (null !== scope.email && scope.email.indexOf("@") === -1 && (el.value = scope.email,
221221
el.disabled = !0), scope.telIndex = index + 1, scope.telField = el), el;
222222
}), filled_fields = _.filter(fields, function(el) {
223223
return null !== el.value;
@@ -648,7 +648,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
648648
}
649649
var checkCollapse = function(instance, el, options) {
650650
var maxHeight = select(instance, el, instance.maxHeightSelector).css("max-height"), height = angular.element(el)[0].scrollHeight;
651-
if (-1 === maxHeight.indexOf("px")) return void console.log("invalid non-pixels max-height for " + instance.maxHeightSelector);
651+
if (maxHeight.indexOf("px") === -1) return void console.log("invalid non-pixels max-height for " + instance.maxHeightSelector);
652652
if (maxHeight = parseInt(maxHeight.replace("px", "")), height > maxHeight) {
653653
if (instance.isCollapsed) return;
654654
instance.isCollapsed = !0, collapseEl(instance, el).addClass("collapsed"), select(instance, el, instance.toggleSelector).removeClass("hidden in");
@@ -741,7 +741,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
741741
}
742742
if (void 0 === format && (format = "str"), 0 === total_votes) return print(0);
743743
var base = question.totals.valid_votes + question.totals.null_votes + question.totals.blank_votes;
744-
return (void 0 === over || null === over) && (over = question.answer_total_votes_percentage),
744+
return void 0 !== over && null !== over || (over = question.answer_total_votes_percentage),
745745
"over-valid-votes" === over && (base = question.totals.valid_votes), print(100 * total_votes / base);
746746
};
747747
}), angular.module("avUi").service("CheckerService", function() {
@@ -841,7 +841,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
841841
prefix: sumStrs(d.prefix, item.prefix)
842842
});
843843
}), !0));
844-
return pass || "chain" !== d.data.groupType ? !0 : !1;
844+
return !(!pass && "chain" === d.data.groupType);
845845
});
846846
return ret;
847847
}
@@ -850,8 +850,8 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
850850
return function(number, fixedDigits) {
851851
angular.isNumber(fixedDigits) && fixedDigits >= 0 && (number = number.toFixed(parseInt(fixedDigits)));
852852
var number_str = (number + "").replace(".", ","), ret = "", commaPos = number_str.length;
853-
-1 !== number_str.indexOf(",") && (commaPos = number_str.indexOf(","));
854-
for (var i = 0; commaPos > i; i++) {
853+
number_str.indexOf(",") !== -1 && (commaPos = number_str.indexOf(","));
854+
for (var i = 0; i < commaPos; i++) {
855855
var reverse = commaPos - i;
856856
reverse % 3 === 0 && reverse > 0 && i > 0 && (ret += "."), ret += number_str[i];
857857
}
@@ -861,7 +861,7 @@ angular.module("avRegistration").factory("Authmethod", [ "$http", "$cookies", "C
861861
return function(originString, searchString) {
862862
if (!angular.isString(originString) || !angular.isString(searchString)) return !1;
863863
var lastIndex = originString.indexOf(searchString);
864-
return -1 !== lastIndex && lastIndex === originString.length - searchString.length;
864+
return lastIndex !== -1 && lastIndex === originString.length - searchString.length;
865865
};
866866
}), angular.module("avUi").service("StateDataService", [ "$state", function($state) {
867867
var data = {};

dist/avConfig-v3.0.1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* in this same file, which you might want to edit and tune if needed.
2121
*/
2222

23-
var AV_CONFIG_VERSION = '3.2.0';
23+
var AV_CONFIG_VERSION = '3.3.0';
2424

2525
var avConfigData = {
2626
// the base url path for ajax requests, for example for sending ballots or

dist/avWidgets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var link = links[i], href = link.getAttribute("href");
1010
void 0 !== callback && callback(link, i, className);
1111
var iframe = createElement("iframe", {
12-
"class": className + "-iframe",
12+
class: className + "-iframe",
1313
src: href,
1414
style: "border: 0; width: 100%; height: 100%",
1515
seamless: ""

0 commit comments

Comments
 (0)