pyc-website

main website for pyc inc.

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

commit c7f410801da90b9cbe2768a2c0d36097763206bd
parent f2f26249783779e0b3bd851c6cacc5640df0d3d0
Author: Jul <jul@9o.is>
Date:   Fri, 11 Apr 2014 00:49:42 -0400

object format for angular loading directive. was failing in production mode

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.directive('disabler', function($compile) { +app.directive('disabler', ['$compile', function($compile) { return { link: function(scope, elm, attrs) { var btnContents = $compile(elm.contents())(scope); @@ -18,7 +18,7 @@ app.directive('disabler', function($compile) { }); } }; -}); +}]); app.controller('AlertCtrl', ['$scope', function($scope) { $scope.alerts = [];