Line | |
---|
1 | define(["dojo/_base/lang", "dojo/dom", "dojo/dom-style", "dijit/registry", "dojox/mobile/TransitionEvent", "dojo/sniff"], |
---|
2 | function(lang, dom, domStyle, registry, TransitionEvent, has){ |
---|
3 | return { |
---|
4 | init: function(){ |
---|
5 | if(!has("phone")){ |
---|
6 | domStyle.set(dom.byId("gotoConfigurationView"), "display", "none"); |
---|
7 | } |
---|
8 | /* |
---|
9 | registry.byId("itemslist_add").on("click", lang.hitch(this, function(e){ |
---|
10 | // use selected_item = -1 to identify add a new item |
---|
11 | this.app._addNewItem = true; |
---|
12 | |
---|
13 | // transition to detail view for edit |
---|
14 | var transOpts = { |
---|
15 | title: "Detail", |
---|
16 | target: "details,EditTodoItem", |
---|
17 | url: "#details,EditTodoItem" |
---|
18 | }; |
---|
19 | new TransitionEvent(e.target, transOpts, e).dispatch(); |
---|
20 | })); |
---|
21 | */ |
---|
22 | } |
---|
23 | } |
---|
24 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.