aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/modalDialog/modalDialogHeader.js
diff options
context:
space:
mode:
authorJonathan Duran2012-04-20 07:54:19 -0700
committerJonathan Duran2012-04-20 07:54:19 -0700
commit2e27ce188f77ea1d4ef8a9c08bc853179c3f7c8b (patch)
treedd58da64aaadf786afe81ba27d87ac3f5c46dddc /js/components/ui/modalDialog/modalDialogHeader.js
parent4465a66996f2b022ab9e838e028415fd87cfa405 (diff)
parent8a546291a9d0de3bda1a7765ae9008f2ad052bba (diff)
downloadninja-2e27ce188f77ea1d4ef8a9c08bc853179c3f7c8b.tar.gz
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
Diffstat (limited to 'js/components/ui/modalDialog/modalDialogHeader.js')
-rwxr-xr-xjs/components/ui/modalDialog/modalDialogHeader.js82
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>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10var modalDialogManagerModule = require("js/components/ui/modalDialog/modal-dialog-manager");
11
12var 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