drupal - pravilno prikazovanje/neprikazovanje modalov za prijavo in registracijo v anglškem jeziku
This commit is contained in:
parent
408104e3af
commit
7f5e185d3e
@ -488,7 +488,7 @@ function odpriAaiLoginObvestilo(){
|
|||||||
jQuery('.nakup-prijava').css('display', 'flex');
|
jQuery('.nakup-prijava').css('display', 'flex');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
jQuery('#modal-open-login-obrazec').css('display', 'flex');
|
jQuery('#modal-login').css('display', 'flex');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@
|
|||||||
var jezikText = jQuery('.language-link:not(.is-active)').text().substring(0, 3);
|
var jezikText = jQuery('.language-link:not(.is-active)').text().substring(0, 3);
|
||||||
jQuery('.language-link').text(jezikText);
|
jQuery('.language-link').text(jezikText);
|
||||||
|
|
||||||
|
function pridobiJezik() {
|
||||||
|
return jQuery('html')[0].lang;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Napredno iskanje
|
* Napredno iskanje
|
||||||
@ -211,8 +211,14 @@
|
|||||||
jQuery('.modal-intro-title').hide();
|
jQuery('.modal-intro-title').hide();
|
||||||
jQuery('.modal-intro-registration-text').css('display', 'flex');
|
jQuery('.modal-intro-registration-text').css('display', 'flex');
|
||||||
|
|
||||||
jQuery('#modal-open-1ka').removeClass('modal-open-login-obrazec').addClass('modal-goto-registration');
|
if(pridobiJezik() == 'sl') {
|
||||||
jQuery('#modal-info-login').css('display', 'flex');
|
jQuery('#modal-open-1ka').removeClass('modal-open-login-obrazec').addClass('modal-goto-registration');
|
||||||
|
jQuery('#modal-info-login').css('display', 'flex');
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
jQuery('.rexister-modal').hide();
|
||||||
|
jQuery('#modal-registration').css('display', 'flex');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('.modal-open-intro-obrazec').on('click', function () {
|
jQuery('.modal-open-intro-obrazec').on('click', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user