mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
@@ -124,7 +124,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$
|
|||||||
// Otherwise use the proper $modal.open
|
// Otherwise use the proper $modal.open
|
||||||
$rootScope.openModal = function(template, options){//controller, scope, keyboard, backdrop){
|
$rootScope.openModal = function(template, options){//controller, scope, keyboard, backdrop){
|
||||||
if (!options) options = {};
|
if (!options) options = {};
|
||||||
if (options.track) Analytics.track(_.merge(options.track,{'hitType':'event','eventCategory':'button','eventAction':'click'}));
|
if (options.track) Analytics.track({'hitType':'event','eventCategory':'button','eventAction':'click','eventLabel':options.track});
|
||||||
if(template === 'newStuff') return forceLoadBailey(template, options);
|
if(template === 'newStuff') return forceLoadBailey(template, options);
|
||||||
return $modal.open({
|
return $modal.open({
|
||||||
templateUrl: 'modals/' + template + '.html',
|
templateUrl: 'modals/' + template + '.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user