dinamyc template loading for delete user directive

stable
Alejandro Alonso 2014-10-13 16:49:43 +02:00
parent 8be7733707
commit cd4ffbfb9e
3 changed files with 7 additions and 4 deletions

View File

@ -58,7 +58,10 @@ DeleteUserDirective = ($repo, $rootscope, $auth, $location, $navUrls, lightboxSe
event.preventDefault()
submit()
return {link:link}
return {
link: link,
templateUrl: "/partials/views/modules/lightbox-delete-account.html"
}
module.directive("tgLbDeleteUser", ["$tgRepo", "$rootScope", "$tgAuth", "$tgLocation", "$tgNavUrls",
"lightboxService", DeleteUserDirective])

View File

@ -60,8 +60,7 @@ block content
a.delete-account(href="", title="Delete Taiga account",
ng-click="ctrl.openDeleteLightbox()") Delete Taiga account
div.lightbox.lightbox-delete-account.hidden(tg-lb-delete-user)
include views/modules/lightbox-delete-account
div.lightbox.lightbox-delete-account.hidden(tg-lb-delete-user)
div.lightbox.lightbox-confirm-use-gravatar.hidden
include views/modules/lightbox-use-gravatar

View File

@ -26,7 +26,8 @@ paths.tmp = "tmp/"
paths.jade = [
paths.app + "index.jade",
paths.app + "partials/**/*.jade"
paths.app + "partials/**/*.jade",
paths.app + "plugins/**/*.jade"
]
paths.images = paths.app + "images/**/*"