Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lastest updates on jquery.mobile

Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
  • Loading branch information...
commit c2637dc6e945cd6c8c7f5c9227e14769a2984f0f 1 parent b905ddd
@swcai authored
View
10 app/controllers/stocks.coffee
@@ -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
2  app/models/stock.coffee
@@ -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
File mode changed
View
2  phonegap/assets/www/application.js
1 addition, 1 deletion not shown
View
0  phonegap/cordova/build 100755 → 100644
File mode changed
View
0  phonegap/cordova/clean 100755 → 100644
File mode changed
View
0  phonegap/cordova/cordova 100755 → 100644
File mode changed
View
0  phonegap/cordova/log 100755 → 100644
File mode changed
View
0  phonegap/cordova/release 100755 → 100644
File mode changed
View
0  phonegap/cordova/run 100755 → 100644
File mode changed
View
2  public/application.js
1 addition, 1 deletion not shown
View
5 public/index.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.