modified the ui a bit with regards to the modaldialog boxes

This commit is contained in:
Morgan McMillian 2012-03-11 22:16:26 -04:00
parent 315f28edfa
commit b80225dc27

View file

@ -35,29 +35,42 @@ enyo.kind({
}, },
components: [ components: [
{name: "todoPopup", kind: "ModalDialog", components: [ {name: "todoPopup", kind: "ModalDialog", dismissWithClick: true,
{kind: "Button", caption: "Complete", onclick: "completeTodoItem"}, onClose: "closePopup", components: [
{kind: "Button", caption: "Prioritize", onclick: "showPriList"}, {kind: "RowGroup", components: [
{kind: "Button", caption: "Update", onclick: "updateTodoItem"}, {content:"Complete", onclick:"completeTodoItem",
{kind: "Button", caption: "Delete", onclick: "deleteTodoItem"}, style: "text-align:center"},
{kind: "Button", caption: "Dismiss", onclick: "closePopup"} {content:"Prioritize", onclick:"showPriList",
style: "text-align:center"},
{content:"Update", onclick:"updateTodoItem",
style: "text-align:center"},
{content:"Delete", onclick:"deleteTodoItem",
style: "text-align:center"}
]}
]}, ]},
{name: "completedPopup", kind: "ModalDialog", components: [ {name: "completedPopup", kind: "ModalDialog",
{kind: "Button", caption: "Undo Complete", onclick: "undoCompleteTodoItem"}, dismissWithClick: true, onClose: "closePopup", components: [
{kind: "Button", caption: "Delete", onclick: "deleteTodoItem"}, {kind: "RowGroup", components: [
{kind: "Button", caption: "Dismiss", onclick: "closePopup"} {content:"Undo Complete",
onclick:"undoCompleteTodoItem",
style: "text-align:center"},
{content:"Delete", onclick:"deleteTodoItem",
style: "text-align:center"}
]}
]}, ]},
{name: "priorityPopup", kind: "ModalDialog", components: [ {name: "priorityPopup", kind: "ModalDialog",
{kind: "HtmlContent", content: "Select priority"}, dismissWithClick: true, onClose: "closePopup", components: [
{kind: "RadioGroup", name: "priGroup", onChange: "setPriority", components: [ {kind: "RowGroup", caption:"Select Priority", components: [
{caption: "-", value: "-"}, {kind: "RadioGroup", name: "priGroup",
{caption: "A", value: "A"}, onChange: "setPriority", components: [
{caption: "B", value: "B"}, {caption: "-", value: "-"},
{caption: "C", value: "C"}, {caption: "A", value: "A"},
{caption: "D", value: "D"}, {caption: "B", value: "B"},
{caption: "E", value: "E"} {caption: "C", value: "C"},
]}, {caption: "D", value: "D"},
{kind: "Button", caption: "Dismiss", onclick: "closePopup"} {caption: "E", value: "E"}
]}
]}
]}, ]},
{kind: "SearchInput", name: "searchbox", onchange: "searchList", onCancel: "clearSearch"}, {kind: "SearchInput", name: "searchbox", onchange: "searchList", onCancel: "clearSearch"},
{flex: 1, kind: "Scroller", name: "scroller", components: [ {flex: 1, kind: "Scroller", name: "scroller", components: [
@ -290,11 +303,11 @@ enyo.kind({
}, },
closePopup: function() { closePopup: function() {
this.$.todoPopup.close(); //this.$.todoPopup.close();
this.$.completedPopup.close(); //this.$.completedPopup.close();
this.$.priorityPopup.close(); //this.$.priorityPopup.close();
this.selectedIndex = null; //this.selectedIndex = null;
this.selectedId = null; //this.selectedId = null;
this.$.todoList.render(); this.$.todoList.render();
}, },