From 4fcef8ec68a76ac5a1290ad1fdd9fefeb03854b5 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 31 Oct 2011 12:06:09 +0100 Subject: test --- application/views/scripts/event/index.phtml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'application') diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml index f5175bd..4061092 100755 --- a/application/views/scripts/event/index.phtml +++ b/application/views/scripts/event/index.phtml @@ -284,18 +284,13 @@ function eventSelected(event) { } }); }); - $.get("/event/checkright/rightShortcut/ec", function(rightData){ + $.get("/event/checkright/rightShortcut/ec", function(right){ $.get("/event/checkoverlapselect/poolID/" + $("#poolselectbox option:selected").val() + "/startDate/" + startDate + "/endDate/" + endDate, function(data){ // get conflicts-HTML Element var cell = document.getElementById("conflicts"); // get conflicts - var returndata = jQuery.parseJSON(data); - var right; - if(rightData = 'true'){ - right = true; - } else right = false; - + var returndata = jQuery.parseJSON(data); if($("#poolselectbox option:selected").val() == 'defaultPool' || $("#poolselectbox option:selected").val() == 'noPool') { -- cgit v1.2.3-55-g7522