summaryrefslogtreecommitdiffstats
path: root/admin/survey/script/uporabniki_custom.js
blob: a5df8e861627c4c8dcaaaac7d6eecaa40a4de3e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//Uporabimo custom funkcijo pri uporabnikih, dokler se ne posodobi jQuery
$(document).ready(function () {

    // 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();
    });

});


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];
	});
}