Permalink
Browse files

lastest updates on jquery.mobile

Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
  • Loading branch information...
1 parent b905ddd commit c2637dc6e945cd6c8c7f5c9227e14769a2984f0f @swcai committed Mar 27, 2013
@@ -88,7 +88,9 @@ class StockList extends Spine.Controller
addAll: ->
# @listview.addAll
- Stock.refresh Stock.all()
+ # Stock.refresh Stock.all()
+ # @listview.el.remove()
+ # Stock.fetch()
openStockAddPanel: ->
@code_input.removeAttr 'disabled'
@@ -118,9 +120,9 @@ class StockAppStack extends Spine.Stack
@list = new StockList(el: "#stocklist_page")
@detail = new StockDetail(el: "#stockdetail_page")
- # console.log "start fetch"
- # Stock.fetch()
- # console.log "fetch done"
+ console.log "start fetch"
+ Stock.fetch()
+ console.log "fetch done"
@route '/stocks/:id', (params) -> @detail.active(params)
@route '/stocks', (params) -> @list.active(params)
View
@@ -4,6 +4,8 @@ $ = jQuery
class Stock extends Spine.Model
@configure 'Stock', 'name', 'code', 'currentPrice'
+ @extend Spine.Model.Local
+
constructor: ->
super
View
0 deploy.sh 100755 → 100644
No changes.

Large diffs are not rendered by default.

Oops, something went wrong.
View
0 phonegap/cordova/build 100755 → 100644
No changes.
View
0 phonegap/cordova/clean 100755 → 100644
No changes.
View
0 phonegap/cordova/cordova 100755 → 100644
No changes.
View
0 phonegap/cordova/log 100755 → 100644
No changes.
View
0 phonegap/cordova/release 100755 → 100644
No changes.
View
0 phonegap/cordova/run 100755 → 100644
No changes.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -12,11 +12,12 @@
<script type="text/javascript" charset="utf-8">
var exports = this;
onReady = function(){
- navigator.splashscreen.show();
+ // navigator.splashscreen.show();
var App = require("index");
exports.app = new App({el: $("body")});
};
- window.cordova ? document.addEventListener('deviceready', onReady, false) : console.log('error');
+ // window.cordova ? document.addEventListener('deviceready', onReady, false) : console.log('error');
+ $(onReady);
</script>
</head>
<body>

0 comments on commit c2637dc

Please sign in to comment.