Skip to content
Snippets Groups Projects
Commit d8a1a09d authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix js hint

parent e6459fa6
No related branches found
No related tags found
No related merge requests found
......@@ -607,7 +607,7 @@ function ESSearchPositionModalController($scope, $q, $translate, esGeo, paramete
])
.then(function (res) {
var dividerText = res[0];
var res = res[1];
res = res[1];
if (!res || !res.length) return res;
return [{name: dividerText}].concat(res);
......
......@@ -3,7 +3,6 @@ angular.module('cesium.es.profile.controllers', ['cesium.es.services'])
.config(function($stateProvider) {
$stateProvider.state('app.user_edit_profile', {
cache: false,
url: "/wallet/profile/edit",
views: {
'menuContent': {
......
......@@ -65,13 +65,14 @@ angular.module('cesium.es.document.services', ['ngResource', 'cesium.platform',
function search(options) {
options = options || {};
var sortParts, side;
if (options.type == 'movement') {
if (!options.sort) {
options.sort = 'stats.medianTime:desc';
}
else {
var sortParts = options.sort.split(':');
var side = sortParts.length > 1 ? sortParts[1] : 'desc';
sortParts = options.sort.split(':');
side = sortParts.length > 1 ? sortParts[1] : 'desc';
options.sort = [
{'stats.medianTime': {
......@@ -91,8 +92,8 @@ angular.module('cesium.es.document.services', ['ngResource', 'cesium.platform',
options.sort = 'medianTime:desc';
}
else {
var sortParts = options.sort.split(':');
var side = sortParts.length > 1 ? sortParts[1] : 'desc';
sortParts = options.sort.split(':');
side = sortParts.length > 1 ? sortParts[1] : 'desc';
options.sort = [
{'medianTime': {
......
......@@ -63,7 +63,6 @@ angular.module('cesium.es.modal.services', ['cesium.modal.services', 'cesium.es.
}
});
});
;
}
return {
......
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