pyc-website

main website for pyc inc.

git clone https://9o.is/git/pyc-website.git

commit df6c454fd3ce6be7ca4982943ced3a2f3c16ff80
parent bf158f48a136399bc5b1ee62d678aca672b2ca2e
Author: Jul <jul@9o.is>
Date:   Sat, 12 Apr 2014 22:50:29 -0400

modified angularjs run function structure since it crashed when it's compressed

Diffstat:
Msrc/main/webapp/app/App.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/app/App.js b/src/main/webapp/app/App.js @@ -3,7 +3,7 @@ var app = angular.module("app", ['ui.bootstrap', 'ui.router', 'google-maps', 'ui var ZIP_CODE_REGEXP = /^(\d{5}(-\d{4})?|[A-Z]\d[A-Z] *\d[A-Z]\d)$/; var UNSAFE_URL_REGEXP = /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/; -app.run(function($rootScope, $window){ +app.run(["$rootScope", "$window", function ($rootScope, $window) { $rootScope.$on('$locationChangeStart', function(event, newUrl){ if(newUrl.match(/(http(s)?:\/\/.*\/blog)/)) { event.preventDefault(); @@ -15,7 +15,7 @@ app.run(function($rootScope, $window){ $window.location.href = '/logout'; } }); -}); +}]); app.directive('disabler', ['$compile', function($compile) { return {