From c419b3ae2e5cf10791c59ec10bd8f1bbb372b067 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Sat, 24 May 2014 19:42:44 +0530 Subject: [PATCH] Fix: hopefully the reloading bug on onReturn now fixed --- brewman/static/scripts/angular_directive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/brewman/static/scripts/angular_directive.js b/brewman/static/scripts/angular_directive.js index 8cfff70b..662a166a 100644 --- a/brewman/static/scripts/angular_directive.js +++ b/brewman/static/scripts/angular_directive.js @@ -147,6 +147,7 @@ overlord_directive.directive('onReturn', ['$parse', function ($parse) { scope.$apply(function () { fn(scope, {$event: event}); }); + event.preventDefault(); } }); };