"use strict";

angular.module('wuw.controllers')

.controller('EventsCtrl', function($scope, Events) {
    $scope.loadEvents = function() {
        Events.getEvents().then(function(events){
            $scope.events = events;
        });
    }

    $scope.openEvent = function(url) {
        url = 'http://www.hft-stuttgart.de/' + url;
        window.open(url, '_blank', 'location=yes');
    }

    $scope.loadEvents();
});

@@ -289,52 +289,23 @@
     
-url = 'http://www.hft-stuttgart.de/' + url;%0A
+if (url) %7B%0A    
     
@@ -331,13 +331,14 @@
 , '_
-blank
+system
 ', '
@@ -353,16 +353,27 @@
 =yes');%0A
+        %7D%0A%0A
     %7D%0A%0A 

fix url opening