Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: swcai/spine-stock
base: 628b977de9
...
head fork: swcai/spine-stock
compare: c2637dc6e9
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 12 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 11, 2013
@swcai typo error fixes
Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
b905ddd
Commits on Mar 27, 2013
@swcai lastest updates on jquery.mobile
Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
c2637dc
View
13 app/controllers/stocks.coffee
@@ -21,7 +21,7 @@ class StockDetail extends Spine.Controller
change: (id) ->
@item = Stock.find(id)
- @render
+ @render()
class StockListItem extends Spine.Controller
@@ -87,7 +87,10 @@ class StockList extends Spine.Controller
@listview = new StockListView(el: '#stocklist_listview')
addAll: ->
- @listview.addAll
+ # @listview.addAll
+ # Stock.refresh Stock.all()
+ # @listview.el.remove()
+ # Stock.fetch()
openStockAddPanel: ->
@code_input.removeAttr 'disabled'
@@ -117,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>

No commit comments for this range

Something went wrong with that request. Please try again.