A munkamenet lejárt, kérjük jelentkezzen be újra!
').fadeIn();
- $('#mayorbody').fadeOut();
- window.location.replace(location.origin);
-}
-
-jQuery.fn.preventDoubleSubmission = function() {
- $(this).on('submit',function(e){
- var $form = $(this);
- if ($form.data('submitted') === true) {
- e.preventDefault();
- } else {
- $form.data('submitted', true);
- }
- });
- return this;
-};
-
-/* teszt
-function isNear( $element, distance, event ) {
- var left = $element.offset().left - distance,
- top = $element.offset().top - distance,
- right = left + $element.width() + ( 2 * distance ),
- bottom = top + $element.height() + ( 2 * distance ),
- x = event.pageX,
- y = event.pageY;
- return ( x > left && x < right && y > top && y < bottom );
-};
-*/
-
-function href(p) {
- var get = '';
- $.each( p, function( key, value ) { get += key + "=" + value + "&"; });
- return ('index.php?policy=private&'+get+'sessionID='+$('body').data('sessionid')).replace('&','&');
-}
-
-$(document).ready(function() { // facebook
-
- if (typeof(FB_APP_ID)!=='undefined' && FB_APP_ID!='') {
-
- window.fbAsyncInit = function() {
- FB.init({
- appId : FB_APP_ID,
- cookie : true,
- xfbml : true,
- version : 'v2.2'
- });
- FB.getLoginStatus(function(response) {
- if (response.status === 'connected') {
- $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB2');
- } else if (response.status === 'not_authorized') {
- $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB1');
- } else {
- $('#mglFBconnect').removeClass('FBstatusunknown').addClass('FB0');
- }
- }); // ,true - ha nem cache-elt változat kell
- FB.Event.subscribe('auth.login', my_login_event);
- FB.Event.subscribe('auth.logout', my_logout_event);
- FB.Event.subscribe('auth.authResponseChange', my_authResponseChange_event);
- };
- // Load the SDK asynchronously
- (function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/sdk.js";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));
- }
-}); // doc ready
-
-var my_login_event = function() {
- //console.log('***facebook login event');
-}
-
-var my_logout_event = function() {
- //console.log('***facebook logout event');
-}
-
-var my_authResponseChange_event = function(response) {
- //console.log('***authResponseChange');
-}
-
-var mayor_facebookconnect_redirect = function() {
- var origUrl = $(location).attr('href');
- var pos = origUrl.indexOf("?");
- if (pos != -1) url = origUrl+'&action=facebooklogin';
- else url = origUrl+'?action=facebooklogin';
- window.location = url;
-}
-
-
-// Az ajax hívások vésszatérési értékét feldolgozó és a layer-t megjelenítő függvény változók inicializálása (hogy ne legyen undefined)
-var showUpdateLayer = function() {};
-var hideUpdateLayer = function() {};
-var showUpdateWindowSide = function() {};
-var hideUpdateWindowSide = function() {};
-var showUpdateWindowSideSub = function() {};
-var hideUpdateWindowSideSub = function() {};
-var processJSON;
-
-$(document).ready(function() { // még több click eseménykezelő!
- $('#mayorMenuSearchIcon').on('click',function(event) {
- $('#mayorSearch').show();
- event.preventDefault();
- event.stopImmediatePropagation(); // STOP mayorClick
- $('#mayorSearch input[type=text]').focus();
- });
- $('#mayorNaviSearchIcon').on('click',function(event) {
- $('#mayorSearch').show();
- event.preventDefault();
- event.stopImmediatePropagation(); // STOP mayorClick
- $('#mayorSearch input[type=text]').focus();
- });
-
- //gapi.load('auth2', function() {
- // gapi.auth2.init();
- //});
- if (typeof(GOOGLEAPI_CLIENT_ID)!=='undefined' && GOOGLEAPI_CLIENT_ID!='') {
- startGoogleAuth();
- }
-});
-
-// GOOGLE
-var googleUser = {};
-var startGoogleAuth = function() {
- gapi.load('auth2', function(){
- auth2 = gapi.auth2.init({
- client_id: GOOGLEAPI_CLIENT_ID,
- cookiepolicy: 'single_host_origin',
- });
- attachSignin(document.getElementById('googleLoginBtn'));
- });
-};
-function attachSignin(element) {
- auth2.attachClickHandler(element, {},
- function(googleUser) {
- var id_token = googleUser.getAuthResponse().id_token;
- var origUrl = $(location).attr('href');
- var pos = origUrl.indexOf("?");
- if (pos != -1) url = origUrl+'&action=googleapilogin'+'&id_token='+id_token;
- else url = origUrl+'?action=googleapilogin'+'&id_token='+id_token;
- window.location = url;
- }, function(error) {
- // alert(JSON.stringify(error, undefined, 2));
- });
-}
-// GOOGLE
-
diff --git a/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js b/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js
deleted file mode 100644
index 83589daa..00000000
--- a/mayor-orig/www/skin/classic/base/javascript/jquery-1.8.3.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! jQuery v1.8.3 jquery.com | jquery.org/license */
-(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r