Skip to content
Browse files

Update theme to theme-b

Signed-off-by: Wenwei Cai <stanley.w.cai@gmail.com>
  • Loading branch information...
1 parent 67674e8 commit 9b81256e9a1a2b5f6575673381e4b0aeaaa53e84 @swcai committed Mar 11, 2013
Showing with 10 additions and 8 deletions.
  1. +2 −0 app/controllers/stocks.coffee
  2. +1 −1 public/application.js
  3. +7 −7 public/index.html
View
2 app/controllers/stocks.coffee
@@ -90,9 +90,11 @@ class StockList extends Spine.Controller
@listview.addAll
openStockAddPanel: ->
+ @code_input.removeAttr 'disabled'
@StockAddPanel.panel 'open'
closeStockAddPanel: ->
+ @code_input.attr('disabled', 'true')
@StockAddPanel.panel 'close'
addStock: ->
View
2 public/application.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
14 public/index.html
@@ -18,20 +18,20 @@
</script>
</head>
<body>
-<div data-role='page' id='stocklist_page'>
+<div data-role='page' id='stocklist_page' data-theme='b'>
<div data-role='panel' id='stocklist_panel_add' data-position='right' data-display='overlay'>
<div data-role='panel-content'>
<h1>Add new stock</h1>
<label>
<span>Code</span>
- <input id='stocklist_input_code' type="number" name="code" autofocus="autofocus">
+ <input id='stocklist_input_code' type="number" name="code" autofocus="autofocus" data-clear-btn='true'>
</label>
<a data-role='button' id='stocklist_button_add' data-icon='plus'>Add</a>
<a data-role='button' id='stocklist_button_cancel' data-icon='back'>Cancel</a>
</div>
</div>
- <div data-role='header' data-position='fixed'>
+ <div data-role='header' data-position='fixed' data-theme='b'>
<a data-role='buton' data-icon="refresh" id='stocklist_button_refresh'>Refresh</a>
<h1>Stock List</h1>
<a data-role='button' data-icon="plus" id='stocklist_button_openpanel'>New</a>
@@ -40,17 +40,17 @@
<ul id='stocklist_listview' data-role='listview' data-split-icon='delete' data-inset='true'>
</ul>
</div>
- <div data-role='footer' data-position='fixed'>
+ <div data-role='footer' data-position='fixed' data-theme='b'>
</div>
</div>
-<div data-role='page' id='stockdetail_page'>
- <div data-role='header' data-position='fixed'>
+<div data-role='page' id='stockdetail_page' data-theme='b'>
+ <div data-role='header' data-position='fixed' data-theme='b'>
<h1>Stock Detail</h1>
</div>
<div data-role='content'>
</div>
- <div data-role='footer' data-position='fixed'>
+ <div data-role='footer' data-position='fixed' data-theme='b'>
</div>
</div>

0 comments on commit 9b81256

Please sign in to comment.
Something went wrong with that request. Please try again.