From 4988edcd36650dcd6865dd0cf987717577fd1521 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Thu, 20 Mar 2014 14:55:29 +0100 Subject: [PATCH] Cleanups. --- html/main.html | 3 +-- static/js/directives/statusmessage.js | 17 +++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/html/main.html b/html/main.html index 757fd9b0..21c4f6c3 100644 --- a/html/main.html +++ b/html/main.html @@ -11,7 +11,7 @@
<%template "logo" .%>
- +
@@ -42,7 +42,6 @@
-
{{id}}
<%template "extra-body" .%> <%end%> \ No newline at end of file diff --git a/static/js/directives/statusmessage.js b/static/js/directives/statusmessage.js index a38df481..33d75d9c 100644 --- a/static/js/directives/statusmessage.js +++ b/static/js/directives/statusmessage.js @@ -20,15 +20,16 @@ */ define(['text!partials/statusmessage.html'], function(template) { - // statusMessage - return ["$compile", function($compile) { + // statusMessage + return [function() { - return { - restrict: 'E', - replace: true, - template: template - } + return { + restrict: 'E', + replace: true, + template: template, + controller: "StatusmessageController" + } - }]; + }]; });