summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_openid')
-rw-r--r--apps/user_openid/js/settings.js10
-rw-r--r--apps/user_openid/templates/settings.php6
2 files changed, 11 insertions, 5 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, &hellip;" />
</fieldset>