diff options
author | hwc487 | 2012-04-26 13:04:25 -0700 |
---|---|---|
committer | hwc487 | 2012-04-26 13:04:25 -0700 |
commit | 37f2d5230175c0fb9a4792f5e3d804f7604442e1 (patch) | |
tree | c8260f151270c6bdbe08869ebaeb837777c28d1b /js/components/ui/modalDialog/modalDialogHeader.js | |
parent | f13d0f45f6b449764898e99db309c43b51a33476 (diff) | |
parent | 902dc18296fc78f3b8e67d952c42981d926bb2fc (diff) | |
download | ninja-37f2d5230175c0fb9a4792f5e3d804f7604442e1.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/components/ui/modalDialog/modalDialogHeader.js')
-rwxr-xr-x | js/components/ui/modalDialog/modalDialogHeader.js | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/js/components/ui/modalDialog/modalDialogHeader.js b/js/components/ui/modalDialog/modalDialogHeader.js deleted file mode 100755 index 6770f60a..00000000 --- a/js/components/ui/modalDialog/modalDialogHeader.js +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | |||
10 | var modalDialogManagerModule = require("js/components/ui/modalDialog/modal-dialog-manager"); | ||
11 | |||
12 | var ModalDialogHeader = exports.ModalDialogHeader = Montage.create(Component, { | ||
13 | |||
14 | _firstTime: { | ||
15 | enumerable: false, | ||
16 | value: true | ||
17 | }, | ||
18 | |||
19 | showTitle:{ | ||
20 | enumerable: true, | ||
21 | value: true | ||
22 | }, | ||
23 | |||
24 | title:{ | ||
25 | enumerable : true, | ||
26 | value: "Default Title" | ||
27 | }, | ||
28 | |||
29 | showClose:{ | ||
30 | enumerable: true, | ||
31 | value: true | ||
32 | }, | ||
33 | |||
34 | willDraw: { | ||
35 | enumerable: false, | ||
36 | value: function() { | ||
37 | |||
38 | } | ||
39 | }, | ||
40 | |||
41 | draw: { | ||
42 | enumerable: false, | ||
43 | value: function() { | ||
44 | var closeElement = this.cross; | ||
45 | if(closeElement){ | ||
46 | if(!this.showClose){ | ||
47 | closeElement.style.visibility = "hidden"; | ||
48 | }else{ | ||
49 | closeElement.addEventListener("click", function(){ | ||
50 | modalDialogManagerModule.ModalDialogMananger.closeModalDialog(); | ||
51 | }, false); | ||
52 | } | ||
53 | } | ||
54 | var titleElement = this.title; | ||
55 | if(titleElement){ | ||
56 | if(this.showTitle){ | ||
57 | titleElement.innerHTML = this.title; | ||
58 | }else{ | ||
59 | titleElement.style.visibility = "hidden"; | ||
60 | } | ||
61 | } | ||
62 | |||
63 | if(!this.showClose){ | ||
64 | closeElement.style.display = "none"; | ||
65 | } | ||
66 | if(!this.showTitle){ | ||
67 | this.separator.style.display = "none"; | ||
68 | } | ||
69 | |||
70 | this.element.parentNode.addEventListener("closeDialog", function(evt){ | ||
71 | modalDialogManagerModule.ModalDialogMananger.closeModalDialog(); | ||
72 | }, false); | ||
73 | } | ||
74 | }, | ||
75 | |||
76 | didDraw: { | ||
77 | enumerable: false, | ||
78 | value: function() { | ||
79 | |||
80 | } | ||
81 | } | ||
82 | }); \ No newline at end of file | ||