1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 11:15:12 +00:00

add agreement

This commit is contained in:
Rokt33r
2015-07-03 16:41:42 +09:00
parent 1a832c1fc4
commit 2284fd41b9
13 changed files with 479 additions and 12 deletions

View File

@@ -1,6 +1,27 @@
/* global angular */
angular.module('codexen')
.factory('Modal', function ($modal, $rootScope, $auth) {
var showAgreement = function () {
return $modal.open({
templateUrl: 'tpls/modals/regulation.html',
controller: 'AgreementModalController as vm'
}).result
}
var showRegulation = function () {
return $modal.open({
templateUrl: 'tpls/modals/regulation.html',
controller: 'PPModalController as vm'
})
}
var showPP = function () {
return $modal.open({
templateUrl: 'tpls/modals/pp.html',
controller: 'PPModalController as vm'
})
}
var signOut = function () {
return $modal.open({
templateUrl: 'tpls/modals/sign-out-modal.html',
@@ -111,6 +132,9 @@ angular.module('codexen')
}
return {
showAgreement: showAgreement,
showRegulation: showRegulation,
showPP: showPP,
signOut: signOut,
newRecipe: newRecipe,
editRecipe: editRecipe,