Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Add a delay before loading path from router, Fix #710
Browse files Browse the repository at this point in the history
Language handling on share link errors
Set a max width on the home badges
Load main CSS before main JS.
  • Loading branch information
cdujeu committed Nov 15, 2014
1 parent 57f30ad commit 439efa5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/access.ajxp_home/home.css
Expand Up @@ -36,6 +36,7 @@
display: inline-block;
font-size: 25px;
min-width: 190px;
max-width: 220px;
line-height: 30px;
border: 1px solid rgba(255,255,255,0.7);
border-radius: 8px;
Expand Down
8 changes: 3 additions & 5 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -1077,15 +1077,13 @@ public static function loadMinisite($data, $hash = '', $error = null)
public static function loadShareByHash($hash){
AJXP_Logger::debug(__CLASS__, __FUNCTION__, "Do something");
AJXP_PluginsService::getInstance()->initActivePlugins();
if(isSet($_GET["lang"])){
ConfService::setLanguage($_GET["lang"]);
}
$shareCenter = self::getShareCenter();
$data = $shareCenter->loadPublicletData($hash);
$mess = ConfService::getMessages();
if($shareCenter->getShareStore()->isShareExpired($hash, $data)){
/*
if (strstr(realpath($_SERVER["SCRIPT_FILENAME"]),realpath(ConfService::getCoreConf("PUBLIC_DOWNLOAD_FOLDER"))) !== FALSE) {
$shareCenter->deleteExpiredPubliclet($hash, $data);
}
*/
AuthService::disconnect();
self::loadMinisite(array(), $hash, $mess["share_center.165"]);
return;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -125,7 +125,9 @@ Class.create("Ajaxplorer", {
}
ajaxplorer.triggerRepositoryChange(foundRepo.getId());
}else if(path){
ajaxplorer.goTo(path);
window.setTimeout(function(){
ajaxplorer.goTo(path);
}, 1000);
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/themes/orbit/html/gui.html
Expand Up @@ -5,10 +5,10 @@
AJXP_REBASE
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" type="text/css" href="AJXP_THEME_FOLDER/css/allz.css?v=AJXP_CURRENT_VERSION">
AJXP_ADDITIONAL_JS_FRAMEWORKS
<script language="javascript" type="text/javascript" src="AJXP_CLIENT_RESOURCES_FOLDER/js/ajaxplorer_boot.js?v=AJXP_CURRENT_VERSION"></script>
<link rel="icon" type="image/x-png" href="AJXP_THEME_FOLDER/images/html-folder.png">
<link rel="stylesheet" type="text/css" href="AJXP_THEME_FOLDER/css/allz.css?v=AJXP_CURRENT_VERSION">
</head>
<body bgcolor="#FFFFFF" text="#000000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" style="overflow:hidden;">
<script type="text/javascript">
Expand Down

0 comments on commit 439efa5

Please sign in to comment.