aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/classic/module-session/javascript
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 21:20:34 +0100
committerM.Gergo2019-03-08 21:20:34 +0100
commitf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch)
treee13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/www/skin/classic/module-session/javascript
parentc76a004b0135786f2742283f8d5f917106f58bd8 (diff)
downloadmayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz
mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip
további rendrakás
Diffstat (limited to 'mayor-orig/www/skin/classic/module-session/javascript')
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/createAccount.jquery.min.js13
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/facebookConnect.jquery.min.js31
-rw-r--r--mayor-orig/www/skin/classic/module-session/javascript/googleapi.jquery.min.js30
3 files changed, 0 insertions, 74 deletions
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));
- });
- }
- }
-});