From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- .../javascript/createAccount.jquery.min.js | 13 --------- .../javascript/facebookConnect.jquery.min.js | 31 ---------------------- .../javascript/googleapi.jquery.min.js | 30 --------------------- 3 files changed, 74 deletions(-) delete mode 100644 mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js delete mode 100644 mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js delete mode 100644 mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js (limited to 'mayor-orig/www/skin/classic/module-session/javascript') diff --git a/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js deleted file mode 100644 index 1fa17a9c..00000000 --- a/mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js +++ /dev/null @@ -1,13 +0,0 @@ -$(document).ready(function() { - $('#createAccount input[type=submit]').attr("disabled", "disabled"); - $('#createAccount').change(function(){ - $('input').removeClass('hiba'); - if ($('#createAccount input[name="userCn"]').val() == "") $('#createAccount input[name="userCn"]').addClass('hiba'); - if ($('#createAccount input[name="userAccount"]').val() == "") $('#createAccount input[name="userAccount"]').addClass('hiba'); - if ($('#createAccount input[name="userPassword"]').val() != $('#createAccount input[name="verification"]').val()) $('#createAccount input[name="verification"]').addClass('hiba'); -// ideiglegenes bekapcsolva - if ($('#createAccount input[name="mail"]').val() == "") $('#createAccount input[name="mail"]').addClass('hiba'); - if ($('#createAccount input.hiba').length == 0) - $('#createAccount input[type=submit]').removeAttr("disabled"); - }); -}); \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js deleted file mode 100644 index 94010747..00000000 --- a/mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js +++ /dev/null @@ -1,31 +0,0 @@ -$(document).ready(function() { - $('#grantFbAuth').submit(function() { // facebook - FB.getLoginStatus(function(response) { - if (response.status === 'connected') { - mayor_facebookconnect_redirect(); - } else if (response.status === 'not_authorized') { - FB.login(function(loginResponse) { - if (loginResponse.status=='connected') { - mayor_facebookconnect_redirect(); - } - }); - } else { - FB.login(function(loginResponse) { - if (loginResponse.status=='connected') { - mayor_facebookconnect_redirect(); - } - }); - } - },true); - return false; - }); - - var mayor_facebookconnect_redirect = function() { - var origUrl = $(location).attr('href'); - var pos = origUrl.indexOf("?"); - if (pos != -1) url = origUrl+'&action=grantFbAuth'; - else url = origUrl+'?action=grantFbAuth'; - window.location = url; - } - -}); \ No newline at end of file diff --git a/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js b/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js deleted file mode 100644 index 3c54f109..00000000 --- a/mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js +++ /dev/null @@ -1,30 +0,0 @@ -$(document).ready(function() { - if (typeof(GOOGLEAPI_CLIENT_ID)!=='undefined' && GOOGLEAPI_CLIENT_ID!='') { - gapi.load('auth2', function(){ - auth2 = gapi.auth2.init({ - client_id: GOOGLEAPI_CLIENT_ID, - cookiepolicy: 'single_host_origin', - }); - googleapiCheck(document.getElementById('googleapiCheckBtn')); - googleapiCheck(document.getElementById('googleapiGrantBtn')); - googleapiCheck(document.getElementById('googleapiRevokeBtn')); - }); - - function googleapiCheck(element) { - auth2.attachClickHandler(element, {}, - function(googleUser) { - // console.log(googleUser.getBasicProfile()); - var id_token = googleUser.getAuthResponse().id_token; - var origUrl = $(location).attr('href'); - var pos = origUrl.indexOf("?"); - if (pos != -1) url = origUrl+'&id_token='+id_token; - else url = origUrl+'?id_token='+id_token; - if (element.id == 'googleapiGrantBtn') url += '&action=googleapiGrant'; - if (element.id == 'googleapiRevokeBtn') url += '&action=googleapiRevoke'; - window.location = url; - }, function(error) { - // alert(JSON.stringify(error, undefined, 2)); - }); - } - } -}); -- cgit v1.2.3