diff options
-rw-r--r-- | apps/user_openid/js/settings.js | 10 | ||||
-rw-r--r-- | apps/user_openid/templates/settings.php | 6 | ||||
-rw-r--r-- | core/js/js.js | 14 | ||||
-rw-r--r-- | core/templates/layout.user.php | 4 | ||||
-rw-r--r-- | files/js/files.js | 4 | ||||
-rw-r--r-- | settings/css/settings.css | 2 | ||||
-rw-r--r-- | settings/js/personal.js | 8 | ||||
-rw-r--r-- | settings/templates/personal.php | 11 |
8 files changed, 38 insertions, 21 deletions
diff --git a/apps/user_openid/js/settings.js b/apps/user_openid/js/settings.js index b85ce2d3522..cfecd7b1cb4 100644 --- a/apps/user_openid/js/settings.js +++ b/apps/user_openid/js/settings.js @@ -1,5 +1,5 @@ $(document).ready(function(){ - $('#openidform input').blur(function(event){ + $('#openidform #identity').blur(function(event){ event.preventDefault(); var post = $( "#openidform" ).serialize(); $.post( 'ajax/openid.php', post, function(data){ @@ -9,4 +9,12 @@ $(document).ready(function(){ } }); }); + + // reset value when edited, workaround because of .select() not working with disabled inputs + $('#openid').focus(function(event){ + openidValue = $('#openid').val(); + }); + $('#openid').blur(function(event){ + $('#openid').val(openidValue); + }); }); diff --git a/apps/user_openid/templates/settings.php b/apps/user_openid/templates/settings.php index b912ff1b79a..51c80e566b6 100644 --- a/apps/user_openid/templates/settings.php +++ b/apps/user_openid/templates/settings.php @@ -1,9 +1,7 @@ <form id="openidform"> <fieldset class="personalblock"> - <p><strong>OpenID</strong> - <a href="<?php echo ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/?'; echo OC_User::getUser(); ?>" title="OpenID"> - <?php echo ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/?'; echo OC_User::getUser(); ?></p> - </a> + <label for="openid"><strong>OpenID</strong></label> + <input type="text" id="openid" value="<?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/?'; echo OC_User::getUser(); ?>" title="you can authenticate to other sites with this address" /> <label for="identity">Authorized</label> <input type="text" name="identity" id="identity" value="<?php echo $_['identity']; ?>" placeholder="OpenID provider" title="Wordpress, Identi.ca, Launchpad, …" /> </fieldset> diff --git a/core/js/js.js b/core/js/js.js index e2263685939..2f495321b86 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -299,15 +299,21 @@ $(document).ready(function(){ } }); + // all the tipsy stuff needs to be here (in reverse order) to work + $('.jp-controls .jp-previous').tipsy({gravity:'nw', fade:true, live:true}); + $('.jp-controls .jp-next').tipsy({gravity:'n', fade:true, live:true}); $('.remove .action').tipsy({gravity:'se', fade:true, live:true}); $('.date .action').tipsy({gravity:'se', fade:true, live:true}); $('.action').tipsy({gravity:'s', fade:true, live:true}); $('.selectedActions a.delete').tipsy({gravity: 'ne', fade:true, live:true}); $('.selectedActions a').tipsy({gravity:'n', fade:true, live:true}); - $('input').each(function(i,input) { - if($(input).attr('title')) { - $(input).tipsy({gravity:'w', fade:true}); - } + $('.file_upload_button_wrapper').tipsy({gravity:'e', fade:true}); + $('td.filesize').tipsy({gravity:'s', fade:true, live:true}); + $('td .modified').tipsy({gravity:'s', fade:true, live:true}); + + $('input').tipsy({gravity:'w', fade:true}); + $('input[type=text]').focus(function(){ + this.select(); }); }); diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index c0b347937cf..2e70fa29389 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -31,9 +31,9 @@ <header><div id="header"> <a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img class="svg" src="<?php echo image_path('', 'logo-wide.svg'); ?>" alt="ownCloud" /></a> <form class="searchbox" action="#" method="post"> - <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" class="prettybutton" autocomplete="off" /> + <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" autocomplete="off" /> </form> - <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true" title="<?php echo $l->t('Log out');?>"><img class="svg" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a> + <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a> </div></header> <nav><div id="navigation"> diff --git a/files/js/files.js b/files/js/files.js index 4eb8feb87d8..baf8debf48b 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -17,10 +17,6 @@ $(document).ready(function() { $(this).parent().children('.file_upload_start').trigger('click'); return false; }); - - $('.file_upload_button_wrapper').tipsy({gravity:'e', fade:true}); - $('td.filesize').tipsy({gravity:'s', fade:true, live:true}); - $('td .modified').tipsy({gravity:'s', fade:true, live:true}); // Sets the file-action buttons behaviour : $('tr').live('mouseenter',function(event) { diff --git a/settings/css/settings.css b/settings/css/settings.css index c73e08437c1..c8163ff2f82 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -1,3 +1,5 @@ +input#openid, input#webdav { width:20em; } + /* PERSONAL */ #passworderror { display:none; } #passwordchanged { display:none; } diff --git a/settings/js/personal.js b/settings/js/personal.js index f6b7eeb7584..d16917d5393 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -32,4 +32,12 @@ $(document).ready(function(){ }); return false; }); + + // reset value when edited, workaround because of .select() not working with disabled inputs + $('#webdav').focus(function(event){ + openidValue = $('#webdav').val(); + }); + $('#webdav').blur(function(event){ + $('#webdav').val(openidValue); + }); } ); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 8a6439f9722..95df4d8c712 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -1,5 +1,5 @@ -<div id="quota" class="personalblock"><div style="width:<?php echo $_['usage_relative'] ?>%;"> - <p><?php echo $l->t('You use');?> <strong><?php echo $_['usage'] ?></strong> <?php echo $l->t('of the available');?> <?php echo $_['total_space'] ?></p> +<div id="quota" class="personalblock"><div style="width:<?php echo $_['usage_relative'];?>%;"> + <p><?php echo $l->t('You use');?> <strong><?php echo $_['usage'];?></strong> <?php echo $l->t('of the available');?> <strong><?php echo $_['total_space'];?></strong></p> </div></div> <form id="passwordform"> @@ -15,7 +15,7 @@ <form> <fieldset class="personalblock"> - <strong><label for="languageinput"><?php echo $l->t('Language');?></label></strong> + <label for="languageinput"><strong><?php echo $l->t('Language');?></strong></label> <select id="languageinput" name='lang'> <?php foreach($_['languages'] as $language):?> <option value="<?php echo $language['code'];?>"><?php echo $language['name'];?></option> @@ -26,9 +26,8 @@ </form> <p class="personalblock"> - <strong>WebDAV</strong> <a href="<?php echo ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/files/webdav.php'; ?>" title="webdav"> - <?php echo ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/files/webdav.php'; ?> - </a> + <label for="webdav"><strong>WebDAV</strong></label> + <input id="webdav" type="text" value="<?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/files/webdav.php'; ?>" title="use this address to connect to your ownCloud in your file manager" /> </p> <?php foreach($_['forms'] as $form){ |