PageSourceSearch

https://qisweb.icms.hwg-lu.de/qisserver/pub/js/qis-00000001.js

js hwg-lu.de collected 2026-10-02 16:47:39 UTC 26,138 bytes, 731 lines download raw bytes

1/*jslint browser: true, plusplus: true, maxerr: 500, indent: 4 */
2/*global jQuery, org_apache_myfaces_PopupCalendar, alert, confirm, top*/
3(function () {
4	"use strict";
5	var $ = jQuery;
6	if(typeof String.prototype.str_replace != "function") {
7		String.prototype.str_replace = function(search, replace) {
8			return this.split(search).join(replace);
9		}
10	}
11	
12	function replaceHistory() {
13		var stateObj = {};
14		var referrer = document.referrer;
15		if (referrer != '') {
16			window.history.pushState(stateObj, "Back over forward", referrer);
17		}
18	}
19
20	var hisqis = {
21		qfw: {
22			openWindow: function (element) {
23				var url, windowName, windowProp, w;
24				url = element.attr("data-url");
25				if (url === undefined) {
26					url = element.attr("href");
27				}
28				windowName = element.attr("data-window-name");
29				if (windowName === undefined) {
30					windowName = "fenster";
31				}
32				windowProp = element.attr("data-window-properties");
33				if (windowProp === undefined) {
34					windowProp = "width=880,height=600,status=yes,scrollbars=yes,resizable=yes";
35				}
36				w = window.open(url, windowName, windowProp);
37				w.focus();
38			},
39
40			initNavigation: function () {
41				jQuery(".qisback").click(function (event) {
42					window.history.back();
43					event.preventDefault();
44					return false;
45				});
46				if (document.getElementById("qis-top-main-redirect") !== null) {
47					top.main.location.href = document.getElementById("qis-top-main-redirect").getAttribute("data-location");
48				}
49				jQuery(".qisautoopenwindow").each(function (event) {
50					hisqis.qfw.openWindow(jQuery(this));
51				});
52
53				jQuery(".qisopenwindow").click(function (event) {
54					hisqis.qfw.openWindow(jQuery(this));
55					event.preventDefault();
56					return false;
57				});
58				jQuery(".qisclosewindow").click(function (event) {
59					window.close();
60					event.preventDefault();
61					return false;
62				});
63				jQuery(".qisprintwindow").click(function (event) {
64					window.print();
65					event.preventDefault();
66					return false;
67				});
68				jQuery(".qisautosubmit").each(function (event) {
69					jQuery(this).submit();
70				});
71				jQuery(".qischangeimage").click(function () {
72					document.getElementById(jQuery(this).attr("data-img-id")).src = jQuery(this).attr("data-img-url");
73				});
74			},
75			initCalendar: function () {
76				var c, length, i, child;
77				jQuery(".qiscalendar").each(function (index, e) {
78					c = new org_apache_myfaces_PopupCalendar();
79					c.initData.imgDir = e.getAttribute("data-initData-imgDir");
80					c.initData.monthName = e.getAttribute("data-initData-monthName").split(",");
81					c.initData.dayName = e.getAttribute("data-initData-dayName").split(",");
82					c.initData.startAt = e.getAttribute("data-initData-startAt");
83					c.initData.popupLeft = e.getAttribute("data-initData-popupLeft");
84					c.initData.gotoString = e.getAttribute("data-initData-gotoString");
85					c.initData.todayString = e.getAttribute("data-initData-todayString");
86					c.initData.weekString = e.getAttribute("data-initData-weekString");
87
88					c.dateFormat = e.getAttribute("data-dateFormat");
89					c.dateFormatSymbols.weekdays = e.getAttribute("data-dateFormatSymbols-weekdays").split(",");
90					c.dateFormatSymbols.shortWeekdays = e.getAttribute("data-dateFormatSymbols-shortWeekdays").split(",");
91					c.dateFormatSymbols.shortMonths = e.getAttribute("data-dateFormatSymbols-shortMonths").split(",");
92					c.dateFormatSymbols.months = e.getAttribute("data-dateFormatSymbols-months").split(",");
93					c.dateFormatSymbols.eras = e.getAttribute("data-dateFormatSymbols-eras").split(",");
94					c.dateFormatSymbols.ampms = e.getAttribute("data-dateFormatSymbols-ampms").split(",");
95
96					length = e.childNodes.length;
97					for (i = 0; i < length; i++) {
98						child = e.childNodes[i];
99						if (child.className === "qiscalendarfreeday") {
100							c.addHoliday(parseInt(child.getAttribute("data-day"), 10), parseInt(child.getAttribute("data-month"), 10),
101									parseInt(child.getAttribute("data-year"), 10), child.getAttribute("data-name"));
102						} else if (child.className === "qiscalendarfreedays") {
103							c.addHolidayRange(parseInt(child.getAttribute("data-day1"), 10), parseInt(child.getAttribute("data-month1"), 10),
104									parseInt(child.getAttribute("data-year1"), 10), parseInt(child.getAttribute("data-day2"), 10),
105									parseInt(child.getAttribute("data-month2"), 10), parseInt(child.getAttribute("data-year2"), 10),
106									child.getAttribute("data-name"));
107						}
108					}
109
110					c.init(e);
111
112					jQuery("#" + e.getAttribute("id") + "i").click(function () {
113						c._popUpCalendar(this, document.getElementById(e.getAttribute("data-element-id")), 'dd.MM.yy');
114					});
115				});
116
117			},
118			initOpenidSelector: function () {
119				if (window.openid !== undefined) {
120					window.openid.init('openid_identifier');
121				}
122			},
123			initConfirmBox: function () {
124				jQuery(".qisconfirmbox").click(function (event) {
125					var answer = confirm(jQuery(this).attr("data-message"));
126					if (!answer) {
127						event.preventDefault();
128						return false;
129					}
130				});
131
132				jQuery(".newcaptcha").click(function (event) {
133					var now = new Date();
134					document.getElementById('j_captcha_image').src = jQuery("#j_captcha_image").attr("data-urlprefix") + now.getTime();
135					event.preventDefault();
136					return false;
137				});
138
139			},
140			initOpenWindow: function () {
141				if (jQuery(".openwindowonload").attr("data-openwindow")) {
142					window.open(jQuery(".openwindowonload").attr("data-openwindow"));
143				}
144				jQuery(".openwindowonclick").click(function (event) {
145					window.open(jQuery(this).attr("data-openwindow"));
146					event.preventDefault();
147				});
148			}, 
149			initDateTimePicker: function() {
150				jQuery(".qisdatetimepicker").each(function (index, e) {
151					var colId = e.getAttribute("dtPicker-columnId"),
152						colId = colId.replace(".", "\\."), // dot as a literal part of a name must be escaped with with two backslashes
153						lang = e.getAttribute("dtPicker-lang"),
154						format = e.getAttribute("dtPicker-format"),
155						formatDate = e.getAttribute("dtPicker-formatDate"),
156						formatTime = e.getAttribute("dtPicker-formatTime"),
157						step = Number(e.getAttribute("dtPicker-step")),
158						closeOnDateSelect = e.getAttribute("dtPicker-closeOnDateSelect").toUpperCase() === "Y",
159						closeOnTimeSelect = e.getAttribute("dtPicker-closeOnTimeSelect").toUpperCase() === "Y",
160						closeOnWithoutClick = e.getAttribute("dtPicker-closeOnWithoutClick").toUpperCase() === "Y",
161						validateOnBlur = e.getAttribute("dtPicker-validateOnBlur").toUpperCase() === "Y",
162						timepicker = e.getAttribute("dtPicker-timepicker").toUpperCase() === "Y",
163						datepicker = e.getAttribute("dtPicker-datepicker").toUpperCase() === "Y",
164						weeks = e.getAttribute("dtPicker-weeks").toUpperCase() === "Y",
165						theme = e.getAttribute("dtPicker-theme"),
166						minDate = e.getAttribute("dtPicker-minDate") ? e.getAttribute("dtPicker-minDate") : false,
167						maxDate = e.getAttribute("dtPicker-maxDate") ? e.getAttribute("dtPicker-maxDate") : false,
168						defaultDate = e.getAttribute("dtPicker-defaultDate"),
169						defaultTime = e.getAttribute("dtPicker-defaultTime"),
170						minTime = e.getAttribute("dtPicker-minTime"),
171						maxTime = e.getAttribute("dtPicker-maxTime"),
172						allowTimes = e.getAttribute("dtPicker-allowTimes") ? e.getAttribute("dtPicker-allowTimes").split(',').map(String) : new Array(),
173						highlightedDates = [],
174						highlightedPeriods = [],
175						opened = e.getAttribute("dtPicker-opened").toUpperCase() === "Y",
176						todayButton = e.getAttribute("dtPicker-todayButton").toUpperCase() === "Y",
177						prevButton = e.getAttribute("dtPicker-prevButton").toUpperCase() === "Y",
178						nextButton = e.getAttribute("dtPicker-nextButton").toUpperCase() === "Y",
179						defaultSelect = e.getAttribute("dtPicker-defaultSelect").toUpperCase() === "Y",
180						allowBlank = e.getAttribute("dtPicker-allowBlank").toUpperCase() === "Y",
181						timepickerScrollbar = e.getAttribute("dtPicker-timepickerScrollbar").toUpperCase() === "Y",
182						scrollMonth = e.getAttribute("dtPicker-scrollMonth").toUpperCase() === "Y",
183						yearStart = Number(e.getAttribute("dtPicker-yearStart")),
184						yearEnd = Number(e.getAttribute("dtPicker-yearEnd")),
185						dayOfWeekStart = Number(e.getAttribute("dtPicker-dayOfWeekStart"));
186					
187					var child, i;
188					for (i = 0; i < e.childNodes.length; i++) {
189						child = e.childNodes[i];
190						if (child.className === "qiscalendarfreeday") {
191							highlightedDates.push(child.getAttribute("data-day")+"."+child.getAttribute("data-month")+"."+child.getAttribute("data-year")+","+child.getAttribute("data-name"));
192						} else if (child.className === "qiscalendarfreedays") {
193							highlightedPeriods.push(child.getAttribute("data-day1")+"."+child.getAttribute("data-month1")+"."+child.getAttribute("data-year1")+","+child.getAttribute("data-day2")+"."+child.getAttribute("data-month2")+"."+child.getAttribute("data-year2")+","+child.getAttribute("data-name"));
194						}
195					}
196					
197					jQuery("#" + colId).datetimepicker({
198						lang: lang,
199						format: format,
200						formatDate: formatDate,
201						formatTime: formatTime,
202						step: step,
203						closeOnDateSelect: closeOnDateSelect,
204						closeOnTimeSelect: closeOnTimeSelect,
205						closeOnWithoutClick: closeOnWithoutClick,
206						validateOnBlur: validateOnBlur,
207						timepicker: timepicker,
208						datepicker: datepicker,
209						weeks: weeks,
210						theme: theme,
211						minDate: minDate,
212						maxDate: maxDate,
213						defaultDate: defaultDate,
214						defaultTime: defaultTime,
215						minTime: minTime,
216						maxTime: maxTime,
217						allowTimes: allowTimes,
218						highlightedDates: highlightedDates,
219						highlightedPeriods: highlightedPeriods,
220						opened: opened,
221						todayButton: todayButton,
222						prevButton: prevButton,
223						nextButton: nextButton,
224						defaultSelect: defaultSelect,
225						allowBlank: allowBlank,
226						timepickerScrollbar: timepickerScrollbar,
227						scrollMonth: scrollMonth,
228						yearStart: yearStart,
229						yearEnd: yearEnd,
230						dayOfWeekStart: dayOfWeekStart
231					});
232					jQuery("#" + e.getAttribute("id") + "i").click(function () {
233						jQuery("#" + colId).datetimepicker('show');
234					});
235				});
236			}
237		},
238
239		lsf: {
240			calls: false,
241			initLastCall: function () {
242				jQuery(".lsflastcall").click(function (event) {
243					if (hisqis.lsf.calls) {
244						var warten = "<span class='warnung'>Ihre Belegung wird verarbeitet ...<\/span>";
245						document.getElementsByName("belegen")[0].parentNode.innerHTML = warten;
246					} else {
247						hisqis.lsf.calls = true;
248					}
249				});
250			},
251
252			testMassenBuchung: function() {
253				var cache = new Object();
254				
255				var log = $('#d_massen_buchung_log');
256				
257				function getAnfrageIds(anfrageId,parent) {
258					if(cache[anfrageId]) {
259						return;
260					}
261					cache[anfrageId] = parent;
262					
263					var item = $('div[data-anfrage-id="' + anfrageId + '"]');
264					var requestConflicts = item.attr("data-request-conflict").str_replace("<br />"," ").split(" ");
265					for(var i=0;i<requestConflicts.length;++i) {
266						getAnfrageIds(requestConflicts[i],anfrageId);
267						cache[requestConflicts[i]] = anfrageId;
268					}
269				}
270				
271				getAnfrageIds(2022,0);
272				
273				for(var anfrageId in cache) {
274					log.append(cache[anfrageId] + "- " + anfrageId + "<br />");
275				}
276
277				for(var anfrageId in cache) {
278					log.append(anfrageId + ",");
279				}
280			},
281			sortMassenBuchung: function() {
282				var checked = new Array();
283				var days = ["Mo","Di","Mi","Do","Fr","Sa","So"];
284				
285				$('[data-role="massenbuchung"]').each(function() {
286					var elm = $(this);
287					var anfrageId = elm.attr("data-anfrage-id");
288					for(var i=0;i<checked.length;++i) {
289						if(checked[i] == anfrageId) {
290							return;
291						}
292					}
293					
294					var requestConflicts = elm.attr("data-request-conflict");
295					
296					if(requestConflicts == "n") {
297						requestConflicts = "";
298					}
299					
300					if(requestConflicts) {
301						requestConflicts = requestConflicts.str_replace("<br />"," ").split(" ");
302						for(var i=0;i<requestConflicts.length;++i) {
303							checked.push(requestConflicts[i]);
304							var sorting = new Array();
305
306							var item = $('div[data-anfrage-id="' + requestConflicts[i] + '"]');
307							if(item.length >= 1) {
308								sorting.push(item);
309							}
310							
311							sorting.push(elm);
312							sorting.sort(function(a,b) {
313								var daya = a.attr("data-sort").split(",")[0];
314								var dayb = b.attr("data-sort").split(",")[0];
315								
316								for(var i=0;i<days.length;++i) {
317									if(days[i] == daya) {
318										daya = i;
319									}
320									if(days[i] == dayb) {
321										dayb = i;
322									}
323								}
324								
325								if(daya == dayb) {
326									return a.attr("data-sort") < b.attr("data-sort");
327								}
328								else {
329									return daya < dayb;
330								}
331							});
332							
333							var parent = sorting[0].parent().parent();
334							for(var j=1;j<sorting.length;++j) {
335								var tmp = sorting[j].parent().parent();
336								parent.after(tmp);
337							}
338						}
339					}
340				});
341			},
342			
343			initMassenBuchung: function() {
344				var blocking = new Array();
345				var blockSameTermin = true;
346				var blockSameTerminArray = new Array();
347				
348				$('[data-mrb-block="true"]').bind("click", function() {
349					alert("Dieser Termin wird gerade von einem Raumverwalter bearbeitet.");
350				});
351				
352				$('[data-role="massenbuchung"]').each(function() {
353					var elm = $(this);
354					var anfrageId = elm.attr("data-anfrage-id");
355					var block_id = false;
356					var terminId = elm.attr("data-termin-id");
357					var requestConflicts = elm.attr("data-request-conflict").str_replace("<br />"," ");
358					if(requestConflicts == "n") {
359						requestConflicts = "";
360					}
361					requestConflicts = requestConflicts.split(" ");
362					
363					elm.children().remove();
364					if(requestConflicts.length > 0) {
365						for(var aid in blocking) {
366							if(aid == anfrageId) {
367								block_id = blocking[aid];
368							}
369						}
370
371						for(var i=0;i<requestConflicts.length;++i) {
372							blocking[requestConflicts[i]] = anfrageId;
373						}
374					}
375					
376					if(blockSameTermin) {
377						var found = false;
378						for(var tid in blockSameTerminArray) {
379							if(tid == terminId) {
380								found = blockSameTerminArray[tid];
381							}
382						}
383						
384						if(found) {
385							if(block_id == false) {
386								block_id = found[0];
387							}
388							for(var i=0;i<found.length;++i) {
389								var imb = $("#i_massen_buchung_" + found[i]);
390								var c = imb.attr("data-request-conflict");
391								if(c) {
392									c += " " + anfrageId;
393								}
394								else {
395									c = anfrageId;
396								}
397								imb.attr("data-request-conflict", c);
398								requestConflicts.push(found[i]);
399							}
400							found.push(anfrageId);
401						}
402						else {
403							found = new Array(anfrageId);
404						}
405						blockSameTerminArray[terminId] = found;
406					}
407					
408//					var checkbox = $('<input type="checkbox" id="i_massen_buchung_' + anfrageId + '" name="i_massen_buchung_' + anfrageId + '" data-i-termin-id="' + terminId + '" data-anfrage-id="' + anfrageId + '" data-request-conflict="' + requestConflicts.join(" ") + '" value="' + anfrageId + '"' + ((block_id == false) ? ' checked="checked"' : '')+ '>');
409					var checkbox = $('<input type="checkbox" id="i_massen_buchung_' + anfrageId + '" data-i-termin-id="' + terminId + '" data-anfrage-id="' + anfrageId + '" data-request-conflict="' + requestConflicts.join(" ") + '" value="' + anfrageId + '"' + ((block_id == false) ? ' checked="checked"' : '')+ '>');
410					checkbox.change(function() {
411						var elm = $(this);
412						elm.parent().find('[data-blocking="true"]').html("").attr('href','#');
413						var anfrageId = elm.attr("data-anfrage-id");
414						if(elm.is(':checked')) {
415							elm.attr('checked', 'checked');
416							var requestConflicts = elm.attr("data-request-conflict");
417							if(requestConflicts) {
418								requestConflicts = requestConflicts.split(" ");
419								var i;
420								for(i=0;i<requestConflicts.length;++i) {
421									var cb = $('#i_massen_buchung_' + requestConflicts[i]);
422									cb.each(function() {
423										$(this).parent().find('[data-blocked="true"]').remove();
424
425										var blocking = $(this).parent().find('[data-blocking="true"]');
426										blocking.attr("href","#anfrage_" + anfrageId);
427										blocking.html(anfrageId);
428										$(this).attr('checked', false);
429										this.checked = false;
430									});
431									
432									elm.after('<a data-blocked="true" href="#anfrage_' + requestConflicts[i] + '">' + requestConflicts[i] + '</a><br data-blocked="true" />');
433								}
434							}
435						}
436					});
437
438					elm.append(checkbox);
439					elm.append('<a name="anfrage_' + anfrageId + '">');
440					if(block_id) {
441						elm.append('<a data-blocking="true" href="#anfrage_' + block_id + '">' + block_id + '</a>');
442					}
443					else {
444						elm.append('<a data-blocking="true" href="#"></a>');
445						for(var i=0;i<requestConflicts.length;++i) {
446							elm.append('<a data-blocked="true" href="#anfrage_' + requestConflicts[i] + '">' + requestConflicts[i] + '</a><br data-blocked="true" />');
447						}
448					}
449				});
450
451				var cancel = false;
452				
453				$('#a_massen_buchung_cancel').click(function() {
454					cancel = true;
455				});
456				
457				$('#a_massen_buchung').click(function() {
458					var elms = $('[id^="i_massen_buchung_"]');
459					var log = $('#d_massen_buchung_log');
460					var ids = new Array();
461					var current = 0;
462					
463					if(cancel) {
464						alert("Die Massenbuchung wurde abgebrochen!");
465						return;
466					}
467					
468					function sendRequest(anfrageId) {
469						var conflict = $("#i_massen_buchung_" + anfrageId).attr("data-request-conflict");
470						var url = location.href.substr(0,location.href.indexOf("?"));
471						var asi = location.href.substr(location.href.indexOf("asi"));
472						if(conflict) {
473							url += "?state=openRequestsForRooms&nextdir=ressourcenManager&next=null.vm&menu_open=n&executeRequest=" + anfrageId + "&speed=y&" + asi;
474						}
475						else {
476							url += "?state=openRequestsForRooms&nextdir=ressourcenManager&next=null.vm&menu_open=n&executeRequest=" + anfrageId + "&conflict=n&speed=y&" + asi;
477						}
478//						location.href = url;
479						
480//						url = "http://localhost:38080/qisserver/rds";
481//						url = "http://localhost:38080/";
482						
483				        $.ajax(url, {
484			                success: function(res, textStatus, jqXHR) {
485			                	var div = $('[data-role="massenbuchung"][data-anfrage-id="' + anfrageId + '"]');
486			                	div.children().remove();
487			                	div.append('<img src="/QIS/images/Tik.gif" />');
488			                	var tr = "";
489			                	tr += "<tr>";
490			                	tr += "<td>";
491			                	tr += anfrageId;
492			                	tr += "</td>";
493			                	tr += "<td>";
494			                	tr += "erfuellt";
495			                	tr += "</td>";
496			                	var childs = div.parent().parent().children();
497			                	var i;
498			                	childs.each(function() {
499				                	tr += "<td>";
500				                	tr += $(this).text();
501				                	tr += "</td>";
502			                	});
503			                	tr += "</tr>";
504			                	log.append(tr);
505			                	if(!cancel) {
506									doNext();
507			                	}
508			                },
509			                error: function(jqXHR, textStatus, errorThrown) {
510			                	var div = $('[data-role="massenbuchung"][data-anfrage-id="' + anfrageId + '"]');
511			                	var tr = "";
512			                	tr += "<tr>";
513			                	tr += "<td>";
514			                	tr += anfrageId;
515			                	tr += "</td>";
516			                	tr += "<td>";
517			                	tr += "error (" + textStatus + "," + errorThrown + ")";
518			                	tr += "</td>";
519			                	var childs = div.parent().parent().children();
520			                	var i;
521			                	childs.each(function() {
522				                	tr += "<td>";
523				                	tr += $(this).text();
524				                	tr += "</td>";
525			                	});
526			                	tr += "</tr>";
527			                	log.append(tr);
528			                }
529				        });
530					}
531					
532					function doNext() {
533						if(typeof ids[current] != "undefined" && ids[current] != undefined) {
534							sendRequest(ids[current++]);
535						}
536						else {
537							alert("Alle anfragen wurden bearbeitet.");
538//							location.reload(true);
539						}
540					}
541					
542					elms.each(function() {
543						var elm = $(this);
544						if(elm.is(':checked')) {
545							ids.push(elm.attr("data-anfrage-id"));
546						}
547						elm.attr("disabled", true);
548					});
549					
550					doNext();
551				});
552				
553				$('#a_massen_buchung_drucken').click(function() {
554					var w = 800;
555					var h = 600;
556			        var x = screen.availWidth/2-w/2;
557			        var y = screen.availHeight/2-h/2;
558			        
559			        var log = $('#d_massen_buchung_log');
560			        
561			        var popupWindow = window.open('','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
562			        var text = log.html();
563			        text = "<table border='1'>" + text + "</table>";
564			        popupWindow.document.write(
565			        		"<html>" +
566			        		"<head>" +
567			        		"</head>" +
568			        		"<body>" +
569			        		text +
570			        		"</body>" +
571							"</html>");
572			        popupWindow.document.close();
573			        popupWindow.focus();
574			        popupWindow.print();
575				});
576				
577				$('#a_massen_buchung_sortieren').click(function() {
578					hisqis.lsf.sortMassenBuchung();
579					hisqis.lsf.initMassenBuchung();
580				});
581				
582				$('#a_massen_buchung_test').click(function() {
583					hisqis.lsf.testMassenBuchung();
584				});
585			},
586			
587			initMarkAll: function() {
588				var mark = $('[data-mark="true"]').add('[name="markAllButton"]');
589				mark.each(function() {
590					var mark = $(this);
591					mark.css("visibility","visible");
592					if(!mark.val()) {
593						mark.val(mark.attr("data-markall"));
594					}
595					
596					var form = mark;
597					var form_name = mark.attr("data-form-name");
598					if(form_name) {
599						form_name = $('[name="' + form_name + '"]');
600						if(form_name.length > 0) {
601							form = form_name;
602						}
603					}
604					while(form.length > 0 && form[0].tagName != "FORM") {
605						form = form.parent();
606					}
607					
608					mark.click(function(e) {
609						var checked;
610						if(mark.val() == mark.attr("data-markall")) {
611							checked = true;
612							mark.val(mark.attr("data-demarkall"));
613						}
614						else {
615							checked = false;
616							mark.val(mark.attr("data-markall"));
617						}
618
619						form.find('input:[type="checkbox"]').each(function() {
620							$(this).attr('checked', checked);
621							$(this).prop('checked', checked);
622						});
623						e.preventDefault();
624						return false;
625					});
626				});
627			}
628		},
629
630		qissos: {
631			called: 0,
632			initCallBescheid: function () {
633				jQuery(".qiscallbescheid").click(function (event) {
634					hisqis.qissos.called = hisqis.qissos.called + 1;
635					if (hisqis.qissos.called === 1) {
636						document.forms[0].besch.value = jQuery(this).attr("data-besch");
637						document.forms[0].stammdaten.value = jQuery(this).attr("data-stammdaten");
638						document.forms[0].submit();
639					} else {
640						alert("Bitte warten Sie, Ihre Anfrage wird bereits bearbeitet");
641					}
642				});
643			}
644		},
645
646		qispos: {
647			baumnode_collapse: function (nodeDOM_id) {
648				document.getElementById('expand_' + nodeDOM_id).style.display = 'inline';
649				document.getElementById('Text_' + nodeDOM_id).style.display = 'none';
650				document.getElementById('Prio_' + nodeDOM_id).style.display = 'none';
651			},
652			baumnode_collapse_All: function (class_name) {
653				var all_obj, ret_obj = [], teststr, i;
654				if (document.all) {
655					all_obj = document.all;
656				} else if (document.getElementsByTagName && !document.all) {
657					all_obj = document.getElementsByTagName("*");
658				}
659
660				for (i = 0; i < all_obj.length; i++) {
661					if (all_obj[i].className.indexOf(class_name) !== -1) {
662						teststr = "," + all_obj[i].className.split(" ").join(",") + ",";
663						if (teststr.indexOf("," + class_name + ",") !== -1) {
664							hisqis.qispos.baumnode_collapse(all_obj[i].id.substr(5));
665							document.getElementById('collapse_' + all_obj[i].id.substr(5)).style.display = 'inline';
666							document.getElementById('Text_' + all_obj[i].id.substr(5)).style.border = '1px solid #7FB4D8';
667						}
668					}
669				}
670			},
671
672			initTreeOperations: function () {
673				jQuery(".qisposexpand").click(function () {
674					document.getElementById('expand_' + jQuery(this).attr("data-nodeid")).style.display = 'none';
675					document.getElementById('Text_' + jQuery(this).attr("data-nodeid")).style.display = 'Block';
676					document.getElementById('Prio_' + jQuery(this).attr("data-nodeid")).style.display = 'inline';
677				});
678
679				jQuery(".qisposcollapse").click(function () {
680					hisqis.qispos.baumnode_collapse(jQuery(this).attr("data-nodeid"));
681				});
682
683				hisqis.qispos.baumnode_collapse_All('Baumnode_Text');
684			}
685		},
686
687		qiszul: {
688			called: 0,
689			initLastCall: function () {
690				jQuery(".qiszullastcall").click(function (event) {
691					hisqis.qiszul.called = hisqis.qiszul.called + 1;
692					if (hisqis.qiszul.called === 1) {
693						document.forms[0].submit();
694					} else {
695						alert("Bitte warten Sie, Ihre Anfrage wird bereits bearbeitet");
696					}
697				});
698
699				jQuery(".qiszullastcall2").click(function (event) {
700					hisqis.qiszul.calls = hisqis.qiszul.calls + 1;
701					if (hisqis.qiszul.calls === 1) {
702						document.forms[1].submit();
703					} else {
704						alert("Bitte warten Sie, Ihre Anfrage wird bereits bearbeitet");
705					}
706				});
707			}
708		}
709	};
710
711	jQuery().ready(function () {
712		hisqis.qfw.initCalendar();
713		hisqis.qfw.initNavigation();
714		hisqis.qfw.initConfirmBox();
715		hisqis.qfw.initOpenidSelector();
716		hisqis.qfw.initOpenWindow();
717		hisqis.qfw.initDateTimePicker();
718		hisqis.lsf.initLastCall();
719		hisqis.qispos.initTreeOperations();
720		hisqis.qissos.initCallBescheid();
721		hisqis.qiszul.initLastCall();
722		hisqis.lsf.initMassenBuchung();
723		hisqis.lsf.initMarkAll();
724		// if forward.vm we'll erase ourselves from the browser history
725		// to allow back button to refer
726		if (jQuery("body").hasClass("forwardPage")) {
727			replaceHistory();
728		}
729	});
730
731}());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.