summaryrefslogtreecommitdiff
path: root/docroot/classes/layouts/layout.error.class.js
blob: 2fedfcfe1b7cb743a1f591c89bd207c327c71d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Material Experience - Error Card Layout Engine
 * 
 * EYEMG - Interactive Media Group
 * Created by Mike Crute (mcrute@eyemg.com)
 * Updated by Mike Crute (mcrute@eyemg.com) on 9/26/07
 */

Card.Layout.Errors = Class.create();
Object.extend(Object.extend(Card.Layout.Errors.prototype, Card.Layout.prototype), 
{
	/*
	 * Initialize the layout class
	 */
	initialize: function(cframe, data, card) 
	{
		this.cframe       = cframe;
		this.data         = data;
		this.card         = card;
		this.color        = this.card.options.color;
		this.hasResources = false;
	},
		
	/*
	 * Main function to layout the card.
	 */
	layout: function() 
	{
		this.cframe.innerHTML = '';
		this.cframe.appendChild(Builder.node('h1', Strings.cardErrorTitle));
		this.cframe.appendChild(Builder.node('p', Strings.cardErrorText));
	}
});