Skip to content
Snippets Groups Projects
Commit ed0773a1 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

toast display translated message + correct score + correct details page

parent db3f1bc0
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,13 @@
return {
show : function (message, duration, location) {
$translate(message).then(function (data) {
if (window.cordova) {
$cordovaToast.show(message, duration, location);
} else {
console.log($translate(message));
console.log(data);
}
});
}
};
......
......@@ -47,6 +47,10 @@
Scope functions
**/
$scope.isUndefined = function (value) {
return typeof value === 'undefined' || value === null;
};
$scope.myGoBack = function() {
$ionicHistory.goBack();
};
......
......@@ -65,7 +65,7 @@
$scope.getLink = function (league) {
if (league.device_status === 'unlock') {
return 'details({leagueId:' + league.id + '})';
return 'football-details({leagueId:' + league.id + '})';
}
return '-';
};
......
......@@ -48,6 +48,10 @@
Scope functions
**/
$scope.isUndefined = function (value) {
return typeof value === 'undefined' || value === null;
};
$scope.myGoBack = function() {
$ionicHistory.goBack();
};
......@@ -116,10 +120,10 @@
var scores = [];
sets.forEach(function (set) {
scores.push(set.split('-'));
})
});
prediction.score = scores;
}
}
};
/**
End Controller functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment