| Qty over | Unit price |
|---|---|
| 1** | 30 |
| 5 | 20 |
| 8 | 10 |
| Quantity | Unit price (each) |
|---|
| /* | |
| * Styles so Refinery admin is compatible with jquery-ui | |
| */ | |
| .refinery-ui-corner-all { | |
| border: none; | |
| } | |
| #menu { | |
| &.ui-corner-all { |
Works with nested backbone models. Can sync the whole nested collection at once, or just an individual model.
This is just something I hacked together. The goal was to replace it with an updated backbone-offline once that library supports nested models.
Requires:
Probably requires changes for a newer backbone or backbone-relational.
| // Platform: ios | |
| // commit f50d20a87431c79a54572263729461883f611a53 | |
| // File generated at :: Tue Feb 26 2013 14:26:19 GMT-0800 (PST) | |
| /* | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information |
| //based on blog post that I saw here: http://www.sanraul.com/2010/08/01/implementing-doubletap-on-iphones-and-ipads/ | |
| (function($){ | |
| $.fn.doubletap = function(fn) { | |
| return fn ? this.bind('doubletap', fn) : this.trigger('doubletap'); | |
| }; | |
| $.attrFn.doubletap = true; | |
| $.event.special.doubletap = { | |
| setup: function(data, namespaces){ |
| let g:NERDTreeCustomReuseWindows = '1' | |
| call NERDTreeAddKeyMap({ | |
| \ 'key': 'w', | |
| \ 'scope': 'all', | |
| \ 'callback': 'NERDTreeCustomToggleReuse', | |
| \ 'quickhelpText': 'Toggle use existing windows' }) | |
| function! NERDTreeCustomToggleReuse() | |
| let g:NERDTreeCustomReuseWindows = g:NERDTreeCustomReuseWindows ? 0 : 1 |