Detection whether position is within community borders.
This commit is contained in:
parent
cabc070b77
commit
43b4ad9178
31 changed files with 11960 additions and 16 deletions
app/scripts/dialogs
29
app/scripts/dialogs/outsideOfCommunityDialog.js
Normal file
29
app/scripts/dialogs/outsideOfCommunityDialog.js
Normal 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; }
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue