diff --git a/www/plugins/es/js/controllers/common-controllers.js b/www/plugins/es/js/controllers/common-controllers.js
index c69f2a24531c1145e282f84b8344b73ee6b1cb89..035787f49a88c41c38c7c3b443ec7047c96d0cd1 100644
--- a/www/plugins/es/js/controllers/common-controllers.js
+++ b/www/plugins/es/js/controllers/common-controllers.js
@@ -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);
diff --git a/www/plugins/es/js/controllers/profile-controllers.js b/www/plugins/es/js/controllers/profile-controllers.js
index 6193ac41fee58c0594c4cf2e6391effd54ae5a2c..014b1c219fd520c4e471e5e3207eee231d733a10 100644
--- a/www/plugins/es/js/controllers/profile-controllers.js
+++ b/www/plugins/es/js/controllers/profile-controllers.js
@@ -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': {
diff --git a/www/plugins/es/js/services/document-services.js b/www/plugins/es/js/services/document-services.js
index 7270bf180bf4cfcef0f894a9dec0329f4b6166bf..6985c66d5522ddedf5d593740551fb6169d81a64 100644
--- a/www/plugins/es/js/services/document-services.js
+++ b/www/plugins/es/js/services/document-services.js
@@ -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': {
diff --git a/www/plugins/es/js/services/modal-services.js b/www/plugins/es/js/services/modal-services.js
index 440fd56e0701a17b8452c2b7d9a5652636568940..120951e9859f3b7705d909bac6a50349c56a1ada 100644
--- a/www/plugins/es/js/services/modal-services.js
+++ b/www/plugins/es/js/services/modal-services.js
@@ -63,7 +63,6 @@ angular.module('cesium.es.modal.services', ['cesium.modal.services', 'cesium.es.
}
});
});
- ;
}
return {