From dfb923f34e71075ad06588ae4fabb3c51366e469 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Aug 2011 20:35:20 +0200 Subject: [PATCH 1/3] automatically set background images to png when needed --- core/js/js.js | 16 ++++++++++++++++ files/templates/index.php | 4 ++-- files/templates/part.list.php | 4 ++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index dd3f3b2ac3..30cf01d0b2 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -202,6 +202,22 @@ $(document).ready(function(){ var src=element.attr('src'); element.attr('src',src.substr(0,src.length-3)+'png'); }); + $('.svg').each(function(index,element){ + element=$(element); + var background=element.css('background-image'); + if(background && background!='none'){ + background=background.substr(0,background.length-4)+'png)'; + element.css('background-image',background); + } + element.find('*').each(function(index,element) { + element=$(element); + var background=element.css('background-image'); + if(background && background!='none'){ + background=background.substr(0,background.length-4)+'png)'; + element.css('background-image',background); + } + }); + }); }; $('form.searchbox').submit(function(event){ event.preventDefault(); diff --git a/files/templates/index.php b/files/templates/index.php index 3951787a25..083322174e 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -5,14 +5,14 @@ -
+
- +
diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 34d727dde2..942f749c82 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -7,9 +7,9 @@ $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14 if($relative_date_color>200) $relative_date_color = 200; ?> '> - + - + From 0bcb4a6a8f507e249045154da02372a313a921dc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Aug 2011 21:00:18 +0200 Subject: [PATCH 2/3] set default max upload size in the .htaccess file to something rediculous and don't show the max filesize message when the limit is over 10GB --- .htaccess | 6 +++--- files/templates/index.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index c818c9ca2e..23c90b26d8 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,5 @@ -ErrorDocument 404 //core/templates/404.php -php_value upload_max_filesize 20M -php_value post_max_size 20M +ErrorDocument 404 //owncloud/core/templates/404.php +php_value upload_max_filesize 2048G +php_value post_max_size 2048G SetEnv htaccessWorking true Options -Indexes diff --git a/files/templates/index.php b/files/templates/index.php index 083322174e..407cfa78c2 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -6,7 +6,8 @@
- +
From ce9b36fd3ed2f229886abe32b84698733321d399 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 11 Aug 2011 20:59:17 +0200 Subject: [PATCH 3/3] some interaction design for user management --- admin/css/users.css | 13 ++++++----- admin/js/users.js | 6 ++++- admin/templates/users.php | 27 ++++++++++++----------- apps/files_publiclink/templates/admin.php | 10 ++++----- core/css/styles.css | 4 ++-- files/css/files.css | 2 ++ 6 files changed, 34 insertions(+), 28 deletions(-) diff --git a/admin/css/users.css b/admin/css/users.css index 7c0b76f369..977e06e41c 100644 --- a/admin/css/users.css +++ b/admin/css/users.css @@ -1,12 +1,13 @@ form { display:inline; } -td.password>img, td.remove>img{ display:none;cursor:pointer; } +td.name, td.password { padding-left:.8em; } +td.password>img, td.remove>img { display:none; cursor:pointer; } td.password>span { margin-right:1.2em; } -td.password { width:12em; } -td.password>img { float:right; } +td.password { width:12em; cursor:pointer; } -td.remove { width:1em } -tr:hover>td.password>span{ margin:0; } -tr:hover>td.remove>img, tr:hover>td.password>img { display:inline; } +td.remove { width:1em; } +tr:hover>td.password>span { margin:0; cursor:pointer; } +tr:hover>td.remove>img, tr:hover>td.password>img { display:inline; cursor:pointer; } +tr:hover>td.remove>img { float:right; } li.selected { background-color:#ddd; } #content>table { margin-top:6.5em; } table { width:100%; } diff --git a/admin/js/users.js b/admin/js/users.js index d6798dca57..addf1c2d65 100644 --- a/admin/js/users.js +++ b/admin/js/users.js @@ -46,6 +46,7 @@ $(document).ready(function(){ }); $('td.password>img').live('click',function(event){ + event.stopPropagation(); var img=$(this); var uid=img.parent().parent().data('uid'); var input=$(''); @@ -71,6 +72,9 @@ $(document).ready(function(){ img.css('display',''); }); }); + $('td.password').live('click',function(event){ + $(this).children('img').click(); + }); $('#newuser').submit(function(event){ event.preventDefault(); @@ -88,7 +92,7 @@ $(document).ready(function(){ } ); - var tr=$('#content table tr').first().clone(); + var tr=$('#content table tr').first().next().clone(); tr.attr('data-uid',username); tr.find('td.name').text(username); var select=$(' - - - - -
+ + + + + + + + "> @@ -38,4 +38,5 @@ foreach($_["groups"] as $group){ +
diff --git a/apps/files_publiclink/templates/admin.php b/apps/files_publiclink/templates/admin.php index f6c92d5cb1..b5c04b838b 100644 --- a/apps/files_publiclink/templates/admin.php +++ b/apps/files_publiclink/templates/admin.php @@ -1,12 +1,10 @@ - - - - - - + + + + diff --git a/core/css/styles.css b/core/css/styles.css index 0b9517cab3..3f035027fb 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -9,7 +9,7 @@ table { border-collapse:separate; border-spacing:0; white-space:nowrap; } caption, th, td { text-align:left; font-weight:normal; } table, td, th { vertical-align:middle; } a { border:0; color:#000; text-decoration:none;} -a, a img, a strong, a span, input, select, li { cursor:pointer; } +a, a *, input, input *, select, .button span, li { cursor:pointer; } ul { list-style:none; } body { background:#fefefe; font:normal 80%/1.6em "Lucida Grande", Arial, Verdana, sans-serif; color:#000; margin-bottom:2em; } @@ -99,6 +99,6 @@ legend { padding:.2em; font-size:1.2em; } li.error { width:640px; margin:4em auto; padding:1em 1em 1em 4em; background:#ffe .8em .8em no-repeat; border:1px solid #ccc; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; } .hidden{ display:none; } -#notification{ z-index:101; background-color:#fc4; border:0; padding:0 .7em .3em; display:block; position:fixed; left:50%; top:0; +#notification{ z-index:101; cursor:pointer; background-color:#fc4; border:0; padding:0 .7em .3em; display:block; position:fixed; left:50%; top:0; -moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em; -moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; } diff --git a/files/css/files.css b/files/css/files.css index d24de2b327..cf8e004735 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -20,6 +20,8 @@ .file_upload_start { opacity:0; filter:alpha(opacity=0); z-index:1; position:absolute; left:0; top:0; width:100%; cursor:pointer;} .file_upload_filename { z-index:100; cursor:pointer;} +.file_upload_form, .file_upload_wrapper, .file_upload_start, .file_upload_filename, #file_upload_submit { cursor:pointer; } + /* FILE TABLE */ span#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; } table { position:relative; top:37px; width:100%; }