summaryrefslogtreecommitdiffstats
path: root/forum/skins/default/media/jquery-openid/jquery.openid.js
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-13 01:40:01 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-13 01:40:01 -0400
commit9e9f6b0a71fca40b7a118acb4db37e45609fb5b8 (patch)
tree9a9ab81940a08bfa53c485eb33dc1eda07133ff2 /forum/skins/default/media/jquery-openid/jquery.openid.js
parent3b6143c0ebe0fbfbcc05bd61d9c34906d55f69a7 (diff)
downloadaskbot-9e9f6b0a71fca40b7a118acb4db37e45609fb5b8.tar.gz
askbot-9e9f6b0a71fca40b7a118acb4db37e45609fb5b8.tar.bz2
askbot-9e9f6b0a71fca40b7a118acb4db37e45609fb5b8.zip
renamed main django app from forum to askbot
Diffstat (limited to 'forum/skins/default/media/jquery-openid/jquery.openid.js')
-rwxr-xr-xforum/skins/default/media/jquery-openid/jquery.openid.js111
1 files changed, 0 insertions, 111 deletions
diff --git a/forum/skins/default/media/jquery-openid/jquery.openid.js b/forum/skins/default/media/jquery-openid/jquery.openid.js
deleted file mode 100755
index eae7b3ea..00000000
--- a/forum/skins/default/media/jquery-openid/jquery.openid.js
+++ /dev/null
@@ -1,111 +0,0 @@
-//jQuery OpenID Plugin 1.1 Copyright 2009 Jarrett Vance http://jvance.com/pages/jQueryOpenIdPlugin.xhtml
-$.fn.openid = function() {
- var $this = $(this);
-
- //name input value - needed for name based OpenID
- var $usr = $this.find('input[name=openid_username]');
-
- //final url input value
- var $id = $this.find('input[name=openid_url]');
-
- //beginning and end of name OpenID url (name being the middle)
- var $front = $this.find('p:has(input[name=openid_username])>span:eq(0)');
- var $end = $this.find('p:has(input[name=openid_username])>span:eq(1)');
-
- //needed for special effects only
- var $localfs = $this.find('fieldset:has(input[name=username])');
- var $usrfs = $this.find('fieldset:has(input[name=openid_username])');
- var $idfs = $this.find('fieldset:has(input[name=openid_url])');
-
- var submitusr = function() {
- if ($usr.val().length < 1) {
- $usr.focus();
- return false;
- }
- $id.val($front.text() + $usr.val() + $end.text());
- return true;
- };
-
- var submitid = function() {
- if ($id.val().length < 1) {
- $id.focus();
- return false;
- }
- return true;
-
- };
- var local = function() {
- var $li = $(this);
- $('#openid_form .providers td').removeClass('highlight');
- $li.addClass('highlight');
- $usrfs.hide();
- $idfs.hide();
- $localfs.show();
- $this.unbind('submit').submit(submitid);
- return false;
- };
-
- var direct = function() {
- var $li = $(this);
- $('#openid_form .providers td').removeClass('highlight');
- $li.addClass('highlight');
- $usrfs.fadeOut('slow');
- $localfs.fadeOut('slow');
- $idfs.fadeOut('slow');
- $id.val($this.find("td.highlight span").text());
- setTimeout(function(){$('#bsignin').click();},1000);
- return false;
- };
-
- var openid = function() {
- var $li = $(this);
- $('#openid_form .providers td').removeClass('highlight');
- $li.addClass('highlight');
- $usrfs.hide();
- $localfs.hide();
- $idfs.show();
- $id.focus();
- $this.unbind('submit').submit(submitid);
- return false;
- };
-
- var username = function() {
- var $li = $(this);
- $('#openid_form .providers td').removeClass('highlight');
- $li.addClass('highlight');
- $idfs.hide();
- $localfs.hide();
- $usrfs.show();
- $this.find('#enter_your_what').text($li.attr("title"));
- $front.text($li.find("span").text().split("username")[0]);
- $end.text("").text($li.find("span").text().split("username")[1]);
- $id.focus();
- $this.unbind('submit').submit(submitusr);
- return false;
- };
-
- $this.find('td.local').click(local);
- $this.find('td.direct').click(direct);
- $this.find('td.openid').click(openid);
- $this.find('td.username').click(username);
- $id.keypress(function(e) {
- if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
- return submitid();
- }
- });
- $usr.keypress(function(e) {
- if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
- return submitusr();
- }
- });
- $this.find('td span').hide();
- $this.find('td').css('line-height', 0).css('cursor', 'pointer');
- $usrfs.hide();
- $idfs.hide();
- $localfs.hide();
- $this.find('td:eq(0)').click();
-
- return this;
-};
-// submitting next=%2F&openid_username=&openid_url=http%3A%2F%2Fyahoo.com%2F
-// submitting next=%2F&openid_username=&openid_url=http%3A%2F%2Fyahoo.com%2F