From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- js/io/workflow/newProjectNavigator.js | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 js/io/workflow/newProjectNavigator.js (limited to 'js/io/workflow/newProjectNavigator.js') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage; +var Component = require("montage/ui/component").Component; + +var modalDialogManagerModule = require("js/components/ui/modalDialog/modal-dialog-manager"); +var iconsListModule = require("js/components/ui/FilePicker/iconsList"); + +var NewProjectNavigator = exports.NewProjectNavigator = Montage.create(Component, { + + willDraw: { + enumerable: false, + value: function() { + + } + }, + draw: { + enumerable: false, + value: function() { + + } + }, + didDraw: { + enumerable: false, + value: function() { + + var that = this; + + //hack instead of repetition for now +// if((this.choicesData !== null) && (this.choicesData.hasChilden === true)){ +// this.choicesData.root.children.forEach(function(el){ +// +// }, this); +// } + + //Draw icon list + var iconList = iconsListModule.IconsList.create(); + iconList.element = this.element.getElementsByClassName("right-top")[0]; + iconList.needsDraw = true; + + //test +// setTimeout(function(){ +// iconList.iconsViewDataObject = [ +// { +// "id":"tete", +// "name":"fsvsf", +// "uri":null, +// "fileType":null, +// "hasChilden":false, +// "hasIcon": false, +// "iconUrl":null +// }, +// { +// "id":"ouou", +// "name":"wefwfw", +// "uri":null, +// "fileType":null, +// "hasChilden":false, +// "hasIcon": false, +// "iconUrl":null +// }]; +// +// },5000); + + + + + } + } + +}); \ No newline at end of file -- cgit v1.2.3