Skip to content

Instantly share code, notes, and snippets.

@john-tornblom
Last active January 2, 2016 20:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save john-tornblom/7aac7788220e9ba7d7f6 to your computer and use it in GitHub Desktop.
webif: fixed idnode grid layout when page size is set to 'All' by using a really large page size rather than a negative one.
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