|
@@ -43,7 +43,7 @@ app.config(['$stateProvider', '$urlRouterProvider', '$httpProvider', '$locationP
|
43
|
43
|
function ($rootScope, $state, $location, DataShareBusiness, GroupsBusiness, $mdDateLocale, $filter) {
|
44
|
44
|
|
45
|
45
|
$rootScope.$watch(function(){ return Object.keys($location.search())[0] }, function(){
|
46
|
|
- if (DataShareBusiness.Groups != null) {
|
|
46
|
+ if (DataShareBusiness.Groups != null && $state.current.name == "home") {
|
47
|
47
|
DataShareBusiness.setFromSearchString(Object.keys($location.search())[0]);
|
48
|
48
|
}
|
49
|
49
|
});
|
|
@@ -55,7 +55,9 @@ app.config(['$stateProvider', '$urlRouterProvider', '$httpProvider', '$locationP
|
55
|
55
|
};
|
56
|
56
|
GroupsBusiness.loadAll(promiseLoadGroups).then(function(data)
|
57
|
57
|
{
|
58
|
|
- DataShareBusiness.setFromSearchString(Object.keys($location.search())[0]);
|
|
58
|
+ if ($state.current.name == "home") {
|
|
59
|
+ DataShareBusiness.setFromSearchString(Object.keys($location.search())[0]);
|
|
60
|
+ }
|
59
|
61
|
});
|
60
|
62
|
|
61
|
63
|
$mdDateLocale.firstDayOfWeek = 1;
|