bump eslint version to 1.10.3
bumps the eslint version to 1.10.3 which fixes a lot of issues, especially rules not working as expected or being ignored and brings the js code up to date to comply with those rules. Change-Id: I1234e7991f98d4ceb0c5333dc036c6a30206ff64
This commit is contained in:
parent
e1f07e2794
commit
9697a9f580
@ -1 +1 @@
|
|||||||
horizon/static/horizon/lib/
|
horizon/static/horizon/lib/**
|
@ -43,9 +43,9 @@
|
|||||||
var pass = actual.css('display') !== 'none';
|
var pass = actual.css('display') !== 'none';
|
||||||
var result = {
|
var result = {
|
||||||
pass: pass,
|
pass: pass,
|
||||||
message: pass ?
|
message: pass
|
||||||
'Expected element to be visible' :
|
? 'Expected element to be visible'
|
||||||
'Expected element to be visible, but it is hidden'
|
: 'Expected element to be visible, but it is hidden'
|
||||||
};
|
};
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -114,9 +114,9 @@
|
|||||||
function resolvePromises(scope, iterStartElement) {
|
function resolvePromises(scope, iterStartElement) {
|
||||||
var resolvedInput = input(scope);
|
var resolvedInput = input(scope);
|
||||||
|
|
||||||
var promiseResolver = angular.isArray(resolvedInput) ?
|
var promiseResolver = angular.isArray(resolvedInput)
|
||||||
multiPromiseResolver(singlePromiseResolver, resolvedInput) :
|
? multiPromiseResolver(singlePromiseResolver, resolvedInput)
|
||||||
singlePromiseResolver(resolvedInput);
|
: singlePromiseResolver(resolvedInput);
|
||||||
|
|
||||||
promiseResolver.then(linkContent, removeContent);
|
promiseResolver.then(linkContent, removeContent);
|
||||||
|
|
||||||
|
@ -108,9 +108,9 @@
|
|||||||
cancel: gettext('Cancel'),
|
cancel: gettext('Cancel'),
|
||||||
prompt: gettext('Click here for filters.'),
|
prompt: gettext('Click here for filters.'),
|
||||||
remove: gettext('Remove'),
|
remove: gettext('Remove'),
|
||||||
text: (scope.clientFullTextSearch ?
|
text: (scope.clientFullTextSearch
|
||||||
gettext('Search in current results') :
|
? gettext('Search in current results')
|
||||||
gettext('Full Text Search'))
|
: gettext('Full Text Search'))
|
||||||
};
|
};
|
||||||
scope.filterStrings = scope.filterStrings || defaultFilterStrings;
|
scope.filterStrings = scope.filterStrings || defaultFilterStrings;
|
||||||
|
|
||||||
|
@ -100,8 +100,8 @@ horizon.Quota = {
|
|||||||
*/
|
*/
|
||||||
noteDisabledFlavors: function(allDisabled) {
|
noteDisabledFlavors: function(allDisabled) {
|
||||||
if ($('#some_flavors_disabled').length === 0) {
|
if ($('#some_flavors_disabled').length === 0) {
|
||||||
var message = allDisabled ? horizon.Quota.allFlavorsDisabledMessage :
|
var message = allDisabled ? horizon.Quota.allFlavorsDisabledMessage
|
||||||
horizon.Quota.disabledFlavorMessage;
|
: horizon.Quota.disabledFlavorMessage;
|
||||||
$('#id_flavor').parent().append("<span id='some_flavors_disabled'>" +
|
$('#id_flavor').parent().append("<span id='some_flavors_disabled'>" +
|
||||||
message + '</span>');
|
message + '</span>');
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"repository": "none",
|
"repository": "none",
|
||||||
"license": "Apache 2.0",
|
"license": "Apache 2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "1.2.1",
|
"eslint": "1.10.3",
|
||||||
"eslint-config-openstack": "1.2.3",
|
"eslint-config-openstack": "1.2.3",
|
||||||
"eslint-plugin-angular": "0.15.0",
|
"eslint-plugin-angular": "0.15.0",
|
||||||
"jasmine-core": "2.2.0",
|
"jasmine-core": "2.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user