
$(document).ready(function(){
    $('.clockpicker').clockpicker({
	donetext: "Hecho",
	placement: "bottom",
	align:"right"
    });

    date=$("#StringDate").html()
    date=localStringDate(date)
    $("#StringDate").html(date)


    $("#send-note").click(function(e){
	e.preventDefault()
	var event = $("#new-note").serializeObject()
	$.ajax({
    	    url:"/notes/add",
    	    type: "post",
	    dataType:"json",
	    data: JSON.stringify(event),
    	    success: function (html){
		window.location.href="/"
	    },
    	    error: function(error){
		showError("Hubo problemas. La nota puede no haberse guardado")
	    }
	})    	
    })

    $("#cancel-send-note").click(function(e){
	e.preventDefault()
	window.location.href="/"
    })

    $("#AllDay").click(function(e){
    	if ($(this).prop("checked")){
    	    $("#Hour").prop("disabled",true)
	    $("#Hour").val("00:00")
	    $(".clockpicker").addClass("no-events")
    	}else{
    	    $("#Hour").prop("disabled",false)
	    $("#Hour").val("09:00")
	    $(".clockpicker").removeClass("no-events")
    	}
    })
})

@@ -834,24 +834,24 @@
 ).prop(%22
-disabled
+readonly
 %22,true)%0A
@@ -966,16 +966,16 @@
 op(%22
-disabled
+readonly
 %22,fa

fix error on worg-newevent.js