Drupal: ob kliku na odjavo odjavi in osvezi stran.
This commit is contained in:
parent
cd13f3bf08
commit
86d0cb9807
@ -24,6 +24,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
|
// Odjava v Drupalu
|
||||||
|
jQuery('#poslji-odjavo').on('click', function(e){
|
||||||
|
console.log('klik odjava')
|
||||||
|
e.preventDefault();
|
||||||
|
jQuery('[name="odjava"]').submit();
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
window.location = '/';
|
||||||
|
}, 500);
|
||||||
|
});
|
||||||
|
|
||||||
// Odpremo drop down menu za uporabnika
|
// Odpremo drop down menu za uporabnika
|
||||||
jQuery('#submenu-login').on('click', function () {
|
jQuery('#submenu-login').on('click', function () {
|
||||||
jQuery('#user-menu').toggle();
|
jQuery('#user-menu').toggle();
|
||||||
@ -1355,8 +1366,6 @@ function oddajNarociloNaStreznik() {
|
|||||||
window.location = urlRedirect;
|
window.location = urlRedirect;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -145,7 +145,8 @@
|
|||||||
deluminate_imagetype="png"></span><?php print t('Edit profile'); ?>
|
deluminate_imagetype="png"></span><?php print t('Edit profile'); ?>
|
||||||
</a></li>
|
</a></li>
|
||||||
<li>
|
<li>
|
||||||
<a class="user-submenu-link" href="#" onclick="document.odjava.submit();">
|
<!-- onclick='document.odjava.submit();'-->
|
||||||
|
<a class="user-submenu-link" href="#" id="poslji-odjavo">
|
||||||
<span class="sprites logout" deluminate_imagetype="png"></span><?php print t('Logout') ?>
|
<span class="sprites logout" deluminate_imagetype="png"></span><?php print t('Logout') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
deluminate_imagetype="png"></span><?php print t('Edit profile'); ?>
|
deluminate_imagetype="png"></span><?php print t('Edit profile'); ?>
|
||||||
</a></li>
|
</a></li>
|
||||||
<li>
|
<li>
|
||||||
<a class="user-submenu-link" href="#" onclick="document.odjava.submit();">
|
<a class="user-submenu-link" href="#" id='poslji-odjavo'>
|
||||||
<span class="sprites logout" deluminate_imagetype="png"></span><?php print t('Logout') ?>
|
<span class="sprites logout" deluminate_imagetype="png"></span><?php print t('Logout') ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user