OC.search.currentResult=-1;
OC.search.lastQuery='';
OC.search.lastResults={};
-//translations for result type ids, can be extended by apps
-// FIXME: move to later in the init process, after translations were loaded
-
-OC.search.resultTypes={
- file: 'File', //t('core','File'),
- folder: 'Folder', //t('core','Folder'),
- image: 'Image', //t('core','Image'),
- audio: 'Audio' //t('core','Audio')
-};
OC.addStyle.loaded=[];
OC.addScript.loaded=[];
OC_Util::addScript("oc-dialogs");
OC_Util::addScript("js");
OC_Util::addScript("l10n");
+ OC_Util::addTranslations("core");
OC_Util::addScript("octemplate");
OC_Util::addScript("eventsource");
OC_Util::addScript("config");
stream_wrapper_register('oc', 'OC\Files\Stream\OC');
\OC::$server->getEventLogger()->start('init_session', 'Initialize session');
- self::initTemplateEngine();
OC_App::loadApps(array('session'));
if (self::$CLI) {
self::$session = new \OC\Session\Memory('');
self::initSession();
}
\OC::$server->getEventLogger()->end('init_session');
+ self::initTemplateEngine();
self::checkConfig();
self::checkInstalled();
self::checkSSL();
+/*
+ * Copyright (c) 2014
+ *
+ * This file is licensed under the Affero General Public License version 3
+ * or later.
+ *
+ * See the COPYING-README file.
+ *
+ */
+
+//translations for result type ids, can be extended by apps
+OC.search.resultTypes={
+ file: t('core','File'),
+ folder: t('core','Folder'),
+ image: t('core','Image'),
+ audio: t('core','Audio')
+};
OC.search.catagorizeResults=function(results){
var types={};
for(var i=0;i<results.length;i++){
$('#searchresults tr.result').removeClass('current');
$(result).addClass('current');
}
-};
\ No newline at end of file
+};