diff options
author | Mike Crute <mcrute@gmail.com> | 2010-01-17 12:06:15 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-01-17 12:06:15 -0500 |
commit | 55974d21a824378b287e563bce4c32597060cfca (patch) | |
tree | ff8426efe10ff98189fee26583f061fb08f19a50 /docroot/classes/layouts/layout.error.class.js | |
download | santoprene_designer_site-55974d21a824378b287e563bce4c32597060cfca.tar.bz2 santoprene_designer_site-55974d21a824378b287e563bce4c32597060cfca.tar.xz santoprene_designer_site-55974d21a824378b287e563bce4c32597060cfca.zip |
Diffstat (limited to 'docroot/classes/layouts/layout.error.class.js')
-rwxr-xr-x | docroot/classes/layouts/layout.error.class.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docroot/classes/layouts/layout.error.class.js b/docroot/classes/layouts/layout.error.class.js new file mode 100755 index 0000000..2fedfcf --- /dev/null +++ b/docroot/classes/layouts/layout.error.class.js | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Material Experience - Error Card Layout Engine | ||
3 | * | ||
4 | * EYEMG - Interactive Media Group | ||
5 | * Created by Mike Crute (mcrute@eyemg.com) | ||
6 | * Updated by Mike Crute (mcrute@eyemg.com) on 9/26/07 | ||
7 | */ | ||
8 | |||
9 | Card.Layout.Errors = Class.create(); | ||
10 | Object.extend(Object.extend(Card.Layout.Errors.prototype, Card.Layout.prototype), | ||
11 | { | ||
12 | /* | ||
13 | * Initialize the layout class | ||
14 | */ | ||
15 | initialize: function(cframe, data, card) | ||
16 | { | ||
17 | this.cframe = cframe; | ||
18 | this.data = data; | ||
19 | this.card = card; | ||
20 | this.color = this.card.options.color; | ||
21 | this.hasResources = false; | ||
22 | }, | ||
23 | |||
24 | /* | ||
25 | * Main function to layout the card. | ||
26 | */ | ||
27 | layout: function() | ||
28 | { | ||
29 | this.cframe.innerHTML = ''; | ||
30 | this.cframe.appendChild(Builder.node('h1', Strings.cardErrorTitle)); | ||
31 | this.cframe.appendChild(Builder.node('p', Strings.cardErrorText)); | ||
32 | } | ||
33 | }); \ No newline at end of file | ||