diff options
Diffstat (limited to '')
-rw-r--r-- | admin/survey/script/uporabniki_custom.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/admin/survey/script/uporabniki_custom.js b/admin/survey/script/uporabniki_custom.js index 13c9d24..a5df8e8 100644 --- a/admin/survey/script/uporabniki_custom.js +++ b/admin/survey/script/uporabniki_custom.js @@ -1,7 +1,13 @@ //Uporabimo custom funkcijo pri uporabnikih, dokler se ne posodobi jQuery
$(document).ready(function () {
- onload_init();
+ // Search na vrhu po pritisku na enter skoci na drupal search
+ $('#searchSurvey').keypress(function (e) {
+ if (e.which == 13) {
+ executeDrupalSearch();
+ return false;
+ }
+ });
$('#xtradiv strong').on("click", function (event) {
$('#xtradivSettings').toggle();
@@ -12,7 +18,7 @@ $(document).ready(function () { function language_change (lang) {
$.post('ajax.php?t=surveyList&a=language_change', {lang: lang}, function () {
- /*window.location.reload();*/
- window.location = window.location.href.split("?")[0];
+ window.location.reload();
+ //window.location = window.location.href.split("?")[0];
});
}
|