]> source.dussan.org Git - nextcloud-server.git/commitdiff
Some small changes
authorBart Visscher <bartv@thisnet.nl>
Fri, 9 Dec 2011 21:36:39 +0000 (22:36 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 9 Dec 2011 21:36:39 +0000 (22:36 +0100)
apps/calendar/js/calendar.js
lib/updater.php

index 005e359f8eb6c4e1f3fbc0e1c4f768187664d4e3..c3644b537041b95a2e6ac5237824a614226ecdfd 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 Calendar={
-       space:' ',
        UI:{
                startEventDialog:function(){
                        $('.tipsy').remove();
@@ -271,9 +270,9 @@ Calendar={
 
                                var url;
                                if (calendarid == 'new'){
-                                       url = "ajax/createcalendar.php";
+                                       url = OC.filePath('calendar', 'ajax', 'createcalendar.php');
                                }else{
-                                       url = "ajax/updatecalendar.php";
+                                       url = OC.filePath('calendar', 'ajax', 'updatecalendar.php');
                                }
                                $.post(url, { id: calendarid, name: displayname, active: active, description: description, color: calendarcolor },
                                        function(data){
index e4db719a62c913cb276da5c85e989316d08da545..cc4a46025394ff45b7a9445e4142303c5d427898 100644 (file)
@@ -52,13 +52,9 @@ class OC_Updater{
                 $tmp['url'] = $data->url;
                 $tmp['web'] = $data->web;
 
-
                 return $tmp;
-
        }
 
-
-
        public static function ShowUpdatingHint(){
                $data=OC_Updater::check();
                if(isset($data['version']) and $data['version']<>'') {
@@ -67,10 +63,8 @@ class OC_Updater{
                        $txt='Your ownCloud is up to date';
                }
                return($txt);
-
        }
 
-
        /**
         * do ownCloud update
         */
@@ -83,9 +77,5 @@ class OC_Updater{
                //update version in config
 
        }
-
 }
-
-
-
 ?>