aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/modalDialog/modalDialogHeader.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-20 10:44:02 -0700
committerJose Antonio Marquez2012-04-20 10:44:02 -0700
commit0b7848540a7ca84b7c67821fedc275cf243eff2f (patch)
treea26b2986d412a02eb93fc7fa1b0f495cab40e757 /js/components/ui/modalDialog/modalDialogHeader.js
parent154d1a8fdbbe050dbfc97cd13baa8981d8fc1e47 (diff)
parent8a546291a9d0de3bda1a7765ae9008f2ad052bba (diff)
downloadninja-0b7848540a7ca84b7c67821fedc275cf243eff2f.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
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