diff --git a/media/js/src/snipts.min.js b/media/js/src/snipts.min.js index d976a78..60ad8d9 100644 --- a/media/js/src/snipts.min.js +++ b/media/js/src/snipts.min.js @@ -1,2 +1,2 @@ -(function(){if(typeof angular!=='undefined'){var root=this;var $=root.jQuery;var controllers={};var app=root.app;controllers.SniptListController=function($scope){$scope.section='Billing';};app.controller(controllers);}}).call(this); \ No newline at end of file +(function(){'use strict';if(typeof angular!=='undefined'){var root=this;var $=root.jQuery;var controllers={};var app=root.app;controllers.SniptListController=function($scope,AccountStorage){$scope.$root.account={list_view:'N'};AccountStorage.getAccount().then(function(response){$scope.$root.account=response.data;});$scope.$root.$watch('account.list_view',function(oldView,newView){if(oldView!==newView){AccountStorage.saveAccount($scope.$root.account,['list_view']).then(function(response){$scope.$root.account=response.data;});}});};app.controller(controllers);}}).call(this); \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 6dce9c5..e6fe9ef 100644 --- a/templates/base.html +++ b/templates/base.html @@ -41,7 +41,7 @@ {% else %} - + {% endif %} {% if has_snipts and not detail %} @@ -400,7 +400,7 @@ {% else %} - + {% endif %} {% block inline-js %}