ported addSyript and other small stuff
This commit is contained in:
parent
254b8b9506
commit
1a2bbd2ee4
28 changed files with 65 additions and 65 deletions
2
apps/bookmarks/appinfo/app.php
Normal file → Executable file
2
apps/bookmarks/appinfo/app.php
Normal file → Executable file
|
@ -16,6 +16,6 @@ $l = new OC_l10n('bookmarks');
|
|||
OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo( 'bookmarks', 'index.php' ), 'icon' => OC_Helper::imagePath( 'bookmarks', 'bookmarks.png' ), 'name' => $l->t('Bookmarks')));
|
||||
|
||||
OC_App::registerPersonal('bookmarks', 'settings');
|
||||
OC_Util::addScript('bookmarks','bookmarksearch');
|
||||
OCP\Util::addscript('bookmarks','bookmarksearch');
|
||||
|
||||
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
|
||||
|
|
2
apps/bookmarks/index.php
Normal file → Executable file
2
apps/bookmarks/index.php
Normal file → Executable file
|
@ -29,7 +29,7 @@ OC_Util::checkAppEnabled('bookmarks');
|
|||
|
||||
OC_App::setActiveNavigationEntry( 'bookmarks_index' );
|
||||
|
||||
OC_Util::addScript('bookmarks','bookmarks');
|
||||
OCP\Util::addscript('bookmarks','bookmarks');
|
||||
OCP\Util::addStyle('bookmarks', 'bookmarks');
|
||||
|
||||
$tmpl = new OC_Template( 'bookmarks', 'list', 'user' );
|
||||
|
|
4
apps/calendar/appinfo/app.php
Normal file → Executable file
4
apps/calendar/appinfo/app.php
Normal file → Executable file
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
2
apps/contacts/appinfo/app.php
Normal file → Executable file
2
apps/contacts/appinfo/app.php
Normal file → Executable file
|
@ -23,5 +23,5 @@ OC_App::addNavigationEntry( array(
|
|||
|
||||
|
||||
OC_APP::registerPersonal('contacts','settings');
|
||||
OC_UTIL::addScript('contacts', 'loader');
|
||||
OCP\Util::addscript('contacts', 'loader');
|
||||
OC_Search::registerProvider('OC_Search_Provider_Contacts');
|
||||
|
|
|
@ -45,13 +45,13 @@ $freeSpace=OC_Filesystem::free_space('/');
|
|||
$freeSpace=max($freeSpace,0);
|
||||
$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
|
||||
|
||||
OC_Util::addScript('','jquery.multiselect');
|
||||
OC_Util::addScript('','oc-vcategories');
|
||||
OC_Util::addScript('contacts','contacts');
|
||||
OC_Util::addScript('contacts','jquery.combobox');
|
||||
OC_Util::addScript('contacts','jquery.inview');
|
||||
OC_Util::addScript('contacts','jquery.Jcrop');
|
||||
OC_Util::addScript('contacts','jquery.multi-autocomplete');
|
||||
OCP\Util::addscript('','jquery.multiselect');
|
||||
OCP\Util::addscript('','oc-vcategories');
|
||||
OCP\Util::addscript('contacts','contacts');
|
||||
OCP\Util::addscript('contacts','jquery.combobox');
|
||||
OCP\Util::addscript('contacts','jquery.inview');
|
||||
OCP\Util::addscript('contacts','jquery.Jcrop');
|
||||
OCP\Util::addscript('contacts','jquery.multi-autocomplete');
|
||||
OCP\Util::addStyle('','jquery.multiselect');
|
||||
OCP\Util::addStyle('contacts','jquery.combobox');
|
||||
OCP\Util::addStyle('contacts','jquery.Jcrop');
|
||||
|
|
2
apps/external/settings.php
vendored
Normal file → Executable file
2
apps/external/settings.php
vendored
Normal file → Executable file
|
@ -2,7 +2,7 @@
|
|||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
OC_Util::addScript( "external", "admin" );
|
||||
OCP\Util::addscript( "external", "admin" );
|
||||
|
||||
$tmpl = new OC_Template( 'external', 'settings');
|
||||
|
||||
|
|
12
apps/files/index.php
Normal file → Executable file
12
apps/files/index.php
Normal file → Executable file
|
@ -26,13 +26,13 @@ OC_Util::checkLoggedIn();
|
|||
|
||||
// Load the files we need
|
||||
OCP\Util::addStyle( "files", "files" );
|
||||
OC_Util::addScript( "files", "jquery.iframe-transport" );
|
||||
OC_Util::addScript( "files", "jquery.fileupload" );
|
||||
OC_Util::addScript( "files", "files" );
|
||||
OC_Util::addScript( 'files', 'filelist' );
|
||||
OC_Util::addScript( 'files', 'fileactions' );
|
||||
OCP\Util::addscript( "files", "jquery.iframe-transport" );
|
||||
OCP\Util::addscript( "files", "jquery.fileupload" );
|
||||
OCP\Util::addscript( "files", "files" );
|
||||
OCP\Util::addscript( 'files', 'filelist' );
|
||||
OCP\Util::addscript( 'files', 'fileactions' );
|
||||
if(!isset($_SESSION['timezone'])){
|
||||
OC_Util::addScript( 'files', 'timezone' );
|
||||
OCP\Util::addscript( 'files', 'timezone' );
|
||||
}
|
||||
OC_App::setActiveNavigationEntry( "files_index" );
|
||||
// Load the files
|
||||
|
|
2
apps/files/settings.php
Normal file → Executable file
2
apps/files/settings.php
Normal file → Executable file
|
@ -30,7 +30,7 @@ OC_Util::checkLoggedIn();
|
|||
|
||||
// Load the files we need
|
||||
OCP\Util::addStyle( "files", "files" );
|
||||
OC_Util::addScript( "files", "files" );
|
||||
OCP\Util::addscript( "files", "files" );
|
||||
|
||||
// Load the files
|
||||
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
|
||||
|
|
2
apps/files/templates/admin.php
Normal file → Executable file
2
apps/files/templates/admin.php
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
<?php OC_Util::addScript('files','admin'); ?>
|
||||
<?php OCP\Util::addscript('files','admin'); ?>
|
||||
|
||||
<form name="filesForm" action='#' method='post'>
|
||||
<fieldset class="personalblock">
|
||||
|
|
2
apps/files_archive/appinfo/app.php
Normal file → Executable file
2
apps/files_archive/appinfo/app.php
Normal file → Executable file
|
@ -16,4 +16,4 @@ OC::$CLASSPATH['OC_Filestorage_Archive']='apps/files_archive/lib/storage.php';
|
|||
|
||||
OC_Hook::connect('OC_Filesystem','get_mountpoint','OC_Filestorage_Archive','autoMount');
|
||||
|
||||
OC_Util::addScript( 'files_archive', 'archive' );
|
||||
OCP\Util::addscript( 'files_archive', 'archive' );
|
||||
|
|
4
apps/files_encryption/settings.php
Normal file → Executable file
4
apps/files_encryption/settings.php
Normal file → Executable file
|
@ -12,7 +12,7 @@ $enabled=(OC_Appconfig::getValue('files_encryption','enable_encryption','true')=
|
|||
$tmpl->assign('blacklist',$blackList);
|
||||
$tmpl->assign('encryption_enabled',$enabled);
|
||||
|
||||
OC_Util::addScript('files_encryption','settings');
|
||||
OC_Util::addScript('core','multiselect');
|
||||
OCP\Util::addscript('files_encryption','settings');
|
||||
OCP\Util::addscript('core','multiselect');
|
||||
|
||||
return $tmpl->fetchPage();
|
||||
|
|
6
apps/files_imageviewer/appinfo/app.php
Normal file → Executable file
6
apps/files_imageviewer/appinfo/app.php
Normal file → Executable file
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
OC_Util::addScript( 'files_imageviewer', 'lightbox' );
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addscript( 'files_imageviewer', 'lightbox' );
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
|
||||
|
||||
?>
|
||||
|
|
6
apps/files_pdfviewer/appinfo/app.php
Normal file → Executable file
6
apps/files_pdfviewer/appinfo/app.php
Normal file → Executable file
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
//load the required files
|
||||
OC_Util::addScript( 'files_pdfviewer', 'viewer');
|
||||
OCP\Util::addscript( 'files_pdfviewer', 'viewer');
|
||||
OCP\Util::addStyle( 'files_pdfviewer', 'viewer');
|
||||
OC_Util::addScript( 'files_pdfviewer', 'pdfjs/build/pdf');
|
||||
OC_Util::addScript( 'files_pdfviewer', 'pdfview');
|
||||
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf');
|
||||
OCP\Util::addscript( 'files_pdfviewer', 'pdfview');
|
||||
?>
|
||||
|
|
4
apps/files_sharing/appinfo/app.php
Normal file → Executable file
4
apps/files_sharing/appinfo/app.php
Normal file → Executable file
|
@ -12,9 +12,9 @@ OC_Hook::connect('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
|
|||
OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
|
||||
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
|
||||
if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') {
|
||||
OC_Util::addScript("files_sharing", "share");
|
||||
OCP\Util::addscript("files_sharing", "share");
|
||||
}
|
||||
OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
|
||||
OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
|
||||
OCP\Util::addStyle( 'files_sharing', 'sharing' );
|
||||
OCP\Util::addStyle("3rdparty", "chosen/chosen");
|
||||
|
||||
|
|
2
apps/files_sharing/list.php
Normal file → Executable file
2
apps/files_sharing/list.php
Normal file → Executable file
|
@ -28,7 +28,7 @@ OC_Util::checkAppEnabled('files_sharing');
|
|||
|
||||
OC_App::setActiveNavigationEntry("files_sharing_list");
|
||||
|
||||
OC_Util::addScript("files_sharing", "list");
|
||||
OCP\Util::addscript("files_sharing", "list");
|
||||
|
||||
$tmpl = new OC_Template("files_sharing", "list", "user");
|
||||
$tmpl->assign("shared_items", OC_Share::getMySharedItems());
|
||||
|
|
2
apps/files_sharing/settings.php
Normal file → Executable file
2
apps/files_sharing/settings.php
Normal file → Executable file
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
OC_Util::addScript('files_sharing', 'settings');
|
||||
OCP\Util::addscript('files_sharing', 'settings');
|
||||
$tmpl = new OC_Template('files_sharing', 'settings');
|
||||
$tmpl->assign('allowResharing', OC_Appconfig::getValue('files_sharing', 'resharing', 'yes'));
|
||||
return $tmpl->fetchPage();
|
||||
|
|
4
apps/files_texteditor/appinfo/app.php
Normal file → Executable file
4
apps/files_texteditor/appinfo/app.php
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
//load the required files
|
||||
OCP\Util::addStyle( 'files_texteditor', 'style' );
|
||||
OC_Util::addScript( 'files_texteditor', 'editor');
|
||||
OC_Util::addScript( 'files_texteditor', 'aceeditor/ace');
|
||||
OCP\Util::addscript( 'files_texteditor', 'editor');
|
||||
OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace');
|
||||
?>
|
||||
|
|
2
apps/files_versions/appinfo/app.php
Normal file → Executable file
2
apps/files_versions/appinfo/app.php
Normal file → Executable file
|
@ -9,7 +9,7 @@ OC_App::register( array(
|
|||
'name' => 'Versioning' ));
|
||||
|
||||
OC_APP::registerAdmin('files_versions', 'settings');
|
||||
OC_UTIL::addScript('files_versions', 'versions');
|
||||
OCP\Util::addscript('files_versions', 'versions');
|
||||
|
||||
// Listen to write signals
|
||||
OC_Hook::connect(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OCA_Versions\Storage", "write_hook");
|
||||
|
|
2
apps/files_versions/settings.php
Normal file → Executable file
2
apps/files_versions/settings.php
Normal file → Executable file
|
@ -2,7 +2,7 @@
|
|||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
OC_Util::addScript( 'files_versions', 'versions' );
|
||||
OCP\Util::addscript( 'files_versions', 'versions' );
|
||||
|
||||
$tmpl = new OC_Template( 'files_versions', 'settings');
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
OCP\Util::addStyle('gallery', 'styles');
|
||||
OC_Util::addScript('gallery', 'albums');
|
||||
OC_Util::addScript('gallery', 'scanner');
|
||||
OC_Util::addScript('gallery', 'album_cover');
|
||||
OCP\Util::addscript('gallery', 'albums');
|
||||
OCP\Util::addscript('gallery', 'scanner');
|
||||
OCP\Util::addscript('gallery', 'album_cover');
|
||||
OCP\Util::addStyle('files', 'files');
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
|
||||
$l = OC_L10N::get('gallery');
|
||||
?>
|
||||
|
|
8
apps/gallery/templates/view_album.php
Normal file → Executable file
8
apps/gallery/templates/view_album.php
Normal file → Executable file
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
OCP\Util::addStyle('gallery', 'styles');
|
||||
OC_Util::addScript('gallery', 'albums');
|
||||
OC_Util::addScript('gallery', 'album_cover');
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OC_Util::addScript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addscript('gallery', 'albums');
|
||||
OCP\Util::addscript('gallery', 'album_cover');
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
|
||||
OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
|
||||
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
|
||||
$l = OC_L10N::get('gallery');
|
||||
?>
|
||||
|
|
2
apps/media/appinfo/app.php
Normal file → Executable file
2
apps/media/appinfo/app.php
Normal file → Executable file
|
@ -24,7 +24,7 @@ $l=OC_L10N::get('media');
|
|||
|
||||
require_once('apps/media/lib_media.php');
|
||||
|
||||
OC_Util::addScript('media','loader');
|
||||
OCP\Util::addscript('media','loader');
|
||||
OC_APP::registerPersonal('media','settings');
|
||||
|
||||
OC_App::register( array( 'order' => 3, 'id' => 'media', 'name' => 'Media' ));
|
||||
|
|
12
apps/media/index.php
Normal file → Executable file
12
apps/media/index.php
Normal file → Executable file
|
@ -31,12 +31,12 @@ OC_Util::checkAppEnabled('media');
|
|||
require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
|
||||
require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php');
|
||||
|
||||
OC_Util::addScript('media','player');
|
||||
OC_Util::addScript('media','music');
|
||||
OC_Util::addScript('media','playlist');
|
||||
OC_Util::addScript('media','collection');
|
||||
OC_Util::addScript('media','scanner');
|
||||
OC_Util::addScript('media','jquery.jplayer.min');
|
||||
OCP\Util::addscript('media','player');
|
||||
OCP\Util::addscript('media','music');
|
||||
OCP\Util::addscript('media','playlist');
|
||||
OCP\Util::addscript('media','collection');
|
||||
OCP\Util::addscript('media','scanner');
|
||||
OCP\Util::addscript('media','jquery.jplayer.min');
|
||||
OCP\Util::addStyle('media','music');
|
||||
|
||||
OC_App::setActiveNavigationEntry( 'media_index' );
|
||||
|
|
2
apps/user_ldap/settings.php
Normal file → Executable file
2
apps/user_ldap/settings.php
Normal file → Executable file
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase'. 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr');
|
||||
|
||||
OC_Util::addScript('user_ldap', 'settings');
|
||||
OCP\Util::addscript('user_ldap', 'settings');
|
||||
OCP\Util::addStyle('user_ldap', 'settings');
|
||||
|
||||
if ($_POST) {
|
||||
|
|
2
apps/user_migrate/appinfo/app.php
Normal file → Executable file
2
apps/user_migrate/appinfo/app.php
Normal file → Executable file
|
@ -23,7 +23,7 @@
|
|||
|
||||
OC_APP::registerPersonal( 'user_migrate', 'settings' );
|
||||
OC_APP::registerAdmin( 'user_migrate', 'admin' );
|
||||
OC_Util::addScript( 'user_migrate', 'export');
|
||||
OCP\Util::addscript( 'user_migrate', 'export');
|
||||
|
||||
// add settings page to navigation
|
||||
$entry = array(
|
||||
|
|
|
@ -4,7 +4,7 @@ $tmpl = new OC_Template( 'user_openid', 'settings');
|
|||
$identity=OC_Preferences::getValue(OCP\USER::getUser(),'user_openid','identity','');
|
||||
$tmpl->assign('identity',$identity);
|
||||
|
||||
OC_Util::addScript('user_openid','settings');
|
||||
OCP\Util::addscript('user_openid','settings');
|
||||
|
||||
return $tmpl->fetchPage();
|
||||
?>
|
Loading…
Reference in a new issue