webif: fixed idnode grid layout when page size is set to 'All' by using a really large page size rather than a negative one.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 8d7ce1ea656369396573aff31972b6d837f41023 | |
| Author: John Törnblom <john.tornblom@gmail.com> | |
| Date: Thu Dec 5 12:14:45 2013 +0100 | |
| webif: fixed idnode grid layout when page size is set to 'All' by using a really large page size rather than a negative one. | |
| diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js | |
| index f3b1dc4..1ffe4f4 100644 | |
| --- a/src/webui/static/app/idnode.js | |
| +++ b/src/webui/static/app/idnode.js | |
| @@ -138,7 +138,7 @@ tvheadend.IdNodeField = function (conf) | |
| dataIndex: this.id, | |
| header : this.text, | |
| sortable : true, | |
| - editor : this.editor({create: false}), | |
| + editor : (this.rdonly ? null : this.editor({create: false})), | |
| renderer : this.renderer(), | |
| hidden : this.hidden, | |
| filter : { | |
| @@ -150,6 +150,12 @@ tvheadend.IdNodeField = function (conf) | |
| this.renderer = function () | |
| { | |
| + if (this.type == 'bool') { | |
| + return function (v) { | |
| + return v ? 'Yes' : 'No'; | |
| + }; | |
| + } | |
| + | |
| if (!this.store) | |
| return null; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment