diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 20:03:41 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 20:03:41 +0200 |
commit | 1a2bbd2ee49db8ec2c83b87718c943f47f91be28 (patch) | |
tree | c0f4cd83c6864728f4710566b929f48ef3168852 /apps/calendar | |
parent | 254b8b95065b4e2f27a8d2620f26bef65269957b (diff) | |
download | nextcloud-server-1a2bbd2ee49db8ec2c83b87718c943f47f91be28.tar.gz nextcloud-server-1a2bbd2ee49db8ec2c83b87718c943f47f91be28.zip |
ported addSyript and other small stuff
Diffstat (limited to 'apps/calendar')
-rwxr-xr-x[-rw-r--r--] | apps/calendar/appinfo/app.php | 4 | ||||
-rwxr-xr-x | apps/calendar/index.php | 14 | ||||
-rwxr-xr-x | apps/calendar/settings.php | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php index ccd7ff4c1a0..e42358422cf 100644..100755 --- a/apps/calendar/appinfo/app.php +++ b/apps/calendar/appinfo/app.php @@ -8,8 +8,8 @@ OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre OC::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php'; OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php'; OC_HOOK::connect('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser'); -OC_Util::addScript('calendar','loader'); -OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min"); +OCP\Util::addscript('calendar','loader'); +OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min"); OCP\Util::addStyle("3rdparty", "chosen/chosen"); OC_App::register( array( 'order' => 10, diff --git a/apps/calendar/index.php b/apps/calendar/index.php index beb6ac0c372..cc6b19a0402 100755 --- a/apps/calendar/index.php +++ b/apps/calendar/index.php @@ -39,19 +39,19 @@ if(OC_Preferences::getValue(OCP\USER::getUser(), 'calendar', 'currentview', 'mon OC_Preferences::setValue(OCP\USER::getUser(), "calendar", "currentview", "list"); } -OC_Util::addScript('3rdparty/fullcalendar', 'fullcalendar'); +OCP\Util::addscript('3rdparty/fullcalendar', 'fullcalendar'); OCP\Util::addStyle('3rdparty/fullcalendar', 'fullcalendar'); -OC_Util::addScript('3rdparty/timepicker', 'jquery.ui.timepicker'); +OCP\Util::addscript('3rdparty/timepicker', 'jquery.ui.timepicker'); OCP\Util::addStyle('3rdparty/timepicker', 'jquery.ui.timepicker'); if(OC_Preferences::getValue(OCP\USER::getUser(), "calendar", "timezone") == null || OC_Preferences::getValue(OCP\USER::getUser(), 'calendar', 'timezonedetection') == 'true'){ - OC_UTIL::addScript('calendar', 'geo'); + OCP\Util::addscript('calendar', 'geo'); } -OC_Util::addScript('calendar', 'calendar'); +OCP\Util::addscript('calendar', 'calendar'); OCP\Util::addStyle('calendar', 'style'); -OC_Util::addScript('', 'jquery.multiselect'); +OCP\Util::addscript('', 'jquery.multiselect'); OCP\Util::addStyle('', 'jquery.multiselect'); -OC_Util::addScript('contacts','jquery.multi-autocomplete'); -OC_Util::addScript('','oc-vcategories'); +OCP\Util::addscript('contacts','jquery.multi-autocomplete'); +OCP\Util::addscript('','oc-vcategories'); OC_App::setActiveNavigationEntry('calendar_index'); $tmpl = new OC_Template('calendar', 'calendar', 'user'); $tmpl->assign('eventSources', $eventSources); diff --git a/apps/calendar/settings.php b/apps/calendar/settings.php index a76c5d1e34a..d6195108a2d 100755 --- a/apps/calendar/settings.php +++ b/apps/calendar/settings.php @@ -11,6 +11,6 @@ $timezone=OC_Preferences::getValue(OCP\USER::getUser(),'calendar','timezone','') $tmpl->assign('timezone',$timezone); $tmpl->assign('timezones',DateTimeZone::listIdentifiers()); -OC_Util::addScript('calendar','settings'); +OCP\Util::addscript('calendar','settings'); return $tmpl->fetchPage(); |