aboutsummaryrefslogtreecommitdiff
path: root/js/io/workflow/newProjectNavigator.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/io/workflow/newProjectNavigator.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/io/workflow/newProjectNavigator.js')
-rw-r--r--js/io/workflow/newProjectNavigator.js75
1 files changed, 75 insertions, 0 deletions
diff --git a/js/io/workflow/newProjectNavigator.js b/js/io/workflow/newProjectNavigator.js
new file mode 100644
index 00000000..9870ba49
--- /dev/null
+++ b/js/io/workflow/newProjectNavigator.js
@@ -0,0 +1,75 @@
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");
11var iconsListModule = require("js/components/ui/FilePicker/iconsList");
12
13var NewProjectNavigator = exports.NewProjectNavigator = Montage.create(Component, {
14
15 willDraw: {
16 enumerable: false,
17 value: function() {
18
19 }
20 },
21 draw: {
22 enumerable: false,
23 value: function() {
24
25 }
26 },
27 didDraw: {
28 enumerable: false,
29 value: function() {
30
31 var that = this;
32
33 //hack instead of repetition for now
34// if((this.choicesData !== null) && (this.choicesData.hasChilden === true)){
35// this.choicesData.root.children.forEach(function(el){
36//
37// }, this);
38// }
39
40 //Draw icon list
41 var iconList = iconsListModule.IconsList.create();
42 iconList.element = this.element.getElementsByClassName("right-top")[0];
43 iconList.needsDraw = true;
44
45 //test
46// setTimeout(function(){
47// iconList.iconsViewDataObject = [
48// {
49// "id":"tete",
50// "name":"fsvsf",
51// "uri":null,
52// "fileType":null,
53// "hasChilden":false,
54// "hasIcon": false,
55// "iconUrl":null
56// },
57// {
58// "id":"ouou",
59// "name":"wefwfw",
60// "uri":null,
61// "fileType":null,
62// "hasChilden":false,
63// "hasIcon": false,
64// "iconUrl":null
65// }];
66//
67// },5000);
68
69
70
71
72 }
73 }
74
75}); \ No newline at end of file