Detection whether position is within community borders.

This commit is contained in:
Andreas Baldeau 2014-08-10 11:37:05 +02:00
parent cabc070b77
commit 43b4ad9178
31 changed files with 11960 additions and 16 deletions
app/scripts/dialogs

View file

@ -0,0 +1,29 @@
'use strict';
angular.module('ffffng')
.factory('OutsideOfCommunityDialog', function ($modal, config) {
var ctrl = function ($scope, $modalInstance, action) {
$scope.action = action;
$scope.config = config;
$scope.proceed = function () {
$modalInstance.close();
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
};
};
return {
open: function (action) {
return $modal.open({
controller: ctrl,
templateUrl: 'views/dialogs/outsideOfCommunityDialog.html',
resolve: {
action: function () { return action; }
}
});
}
};
});