All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mgnl-resources.messages.js.MessagesViewer.js Maven / Gradle / Ivy

/*
 * Ext JS Library 2.1
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */

MessagesViewer = {};

Ext.onReady( function() {
	Ext.QuickTips.init();

	var loadingMask = new Ext.LoadMask(Ext.getBody(), {
		msg :'loading...'
	});
	Ext.Ajax.on('beforerequest', function(conn, options) {
		loadingMask.enable();
		loadingMask.show();
	});
	Ext.Ajax.on('requestcomplete', function(conn, response, options) {
		loadingMask.hide();
		loadingMask.disable();
	});
	Ext.Ajax.on('requestexception', function(conn, response, options) {
		loadingMask.hide();
		loadingMask.disable();
	});

	var messages = new MessagesPanel();
	var mainPanel = new MainPanel();

	messages.on('selectedKey', function(key) {
		mainPanel.changeKey(key);
	});

	var viewport = new Ext.Viewport( {
		layout :'border',
		items : [ messages, mainPanel ]
	});

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy