diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-14 16:12:27 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-14 16:12:31 +0200 |
commit | 7bb261f81014b3f0abb2677f22289e6906ced749 (patch) | |
tree | 5f310d1adb00c9d778ca60422c976c301e7cd992 /apps/user_openid | |
parent | df532e3f823375e059defff4e5e3fee2af6c8054 (diff) | |
download | nextcloud-server-7bb261f81014b3f0abb2677f22289e6906ced749.tar.gz nextcloud-server-7bb261f81014b3f0abb2677f22289e6906ced749.zip |
more fixes for Personal and Tipsy
Diffstat (limited to 'apps/user_openid')
-rw-r--r-- | apps/user_openid/js/settings.js | 10 | ||||
-rw-r--r-- | apps/user_openid/templates/settings.php | 6 |
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, …" /> </fieldset> |