var handle_exception = function(ex) { location.reload(); } var show_dialog = function(type, content, on_yes, title, yes_label, no_label, yes_color, no_color) { //title = (title === undefined? "Info" : title); yes_label = (yes_label === undefined? "Ja" : yes_label); no_label = (no_label === undefined? "Nein" : no_label); yes_color = (yes_color === undefined? 'green' : yes_color); no_color = (no_color === undefined? 'red' : no_color); switch(type) { case 'warning_ok_no': title = title === undefined? "Verwarnung" : title; yes_label = "Ok"; no_label = "Nein"; break; case 'warning_close': title = title === undefined? "Verwarnung" : title; no_label = "Schliessen"; no_color = 'blue'; yes_label = undefined; break; case 'error_close': title = title === undefined? "Fehler" : title; no_label = "Schliessen"; no_color = 'blue'; yes_label = undefined; break; case 'info_send_cancel': title = title === undefined? "Info" : title; yes_label = "Senden"; no_label = "Abbrechen"; break; case 'info_close': title = title === undefined? "Info" : title; no_label = "Schliessen"; no_color = 'blue'; yes_label = undefined; break; case 'custom_title_send_cancel': title = title === undefined? "Info" : title; yes_label = "Senden"; no_label = "Abbrechen"; break; } var dialog_out = $('#global_dialog'); var dialog_in = '
' + content + //'
' + '