Revision 66be390b ui/static/snf/js/ui/web/ui_main_view.js

b/ui/static/snf/js/ui/web/ui_main_view.js
330 330
                this.set_interval_timeouts(snf.config.update_interval);
331 331
            } else {
332 332
                this.focused = false;
333
                this.set_interval_timeouts(snf.config.update_interval*3);
333
                this.set_interval_timeouts(snf.config.blur_delay);
334 334
            }
335 335
        },
336 336

  
......
779 779
    
780 780
    snf.ui.logout = function() {
781 781
        $.cookie("X-Auth-Token", null);
782
        if (window.LOGOUT_REDIRECT !== undefined)
782
        if (snf.config.logout_url !== undefined)
783 783
        {
784
            window.location = window.LOGOUT_REDIRECT;
784
            window.location = snf.config.logout_url;
785 785
        } else {
786 786
            window.location.reload();
787 787
        }
788 788
    }
789 789

  
790 790
    snf.ui.init = function() {
791
        window.onerror = function(msg, file, line) {
792
            snf.ui.trigger_error("CRITICAL", msg, {}, { file:file + ":" + line, allow_close: false });
793
        };
791
        if (snf.config.handle_window_exceptions) {
792
            window.onerror = function(msg, file, line) {
793
                snf.ui.trigger_error("CRITICAL", msg, {}, { file:file + ":" + line, allow_close: false });
794
            };
795
        }
794 796
        snf.ui.main.load();
795 797
    }
796 798

  

Also available in: Unified diff