Merge pull request #51 from digital-gnome/storageareasFixes
Minor UI fixes
This commit is contained in:
commit
12b47cbfe4
|
@ -2076,7 +2076,7 @@ function cache_bust( $file ) {
|
|||
# Use the last modified timestamp to create a link that gets a different filename
|
||||
# To defeat caching. Should probably use md5 hash
|
||||
$parts = pathinfo($file);
|
||||
$cacheFile = 'cache/'.$parts['filename'].'-'.filemtime($file).'.'.$parts['extension'];
|
||||
$cacheFile = 'cache/'.$parts['filename'].'-'.$_COOKIE['zmCSS'].'-'.filemtime($file).'.'.$parts['extension'];
|
||||
if ( file_exists( ZM_PATH_WEB.'/'.$cacheFile ) or symlink( ZM_PATH_WEB.'/'.$file, ZM_PATH_WEB.'/'.$cacheFile ) ) {
|
||||
return $cacheFile;
|
||||
} else {
|
||||
|
@ -2213,6 +2213,7 @@ function getStreamMode( ) {
|
|||
$streamMode = 'single';
|
||||
Info( 'The system has fallen back to single jpeg mode for streaming. Consider enabling Cambozola or upgrading the client browser.' );
|
||||
}
|
||||
return $streamMode;
|
||||
} // end function getStreamMode
|
||||
|
||||
function folder_size($dir) {
|
||||
|
|
|
@ -149,9 +149,9 @@ span.noneCue {
|
|||
}
|
||||
|
||||
.dvrControls input {
|
||||
height: 20px;
|
||||
width: 28px;
|
||||
padding-bottom: 3px;
|
||||
height: 1.5em;
|
||||
width: 2em;
|
||||
padding: 0 ;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
|
|
|
@ -518,7 +518,6 @@ input[type=submit]:disabled {
|
|||
.sidebar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
display: block;
|
||||
|
|
|
@ -131,9 +131,9 @@ span.noneCue {
|
|||
}
|
||||
|
||||
.dvrControls input {
|
||||
height: 20px;
|
||||
width: 28px;
|
||||
padding-bottom: 3px;
|
||||
height: 1.5em;
|
||||
width: 2em;
|
||||
padding: 0;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ if ( $tab == 'skins' ) {
|
|||
$current_css = $_COOKIE['zmCSS'];
|
||||
if ( isset($_GET['css-choice']) and ( $_GET['css-choice'] != $current_css ) ) {
|
||||
setcookie('zmCSS',$_GET['css-choice'], time()+3600*24*30*12*10 );
|
||||
array_map('unlink', glob(ZM_PATH_WEB.'/cache/*')); //cleanup symlinks from cache_bust
|
||||
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
|
||||
$reload = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue