diff options
Diffstat (limited to 'web/layout/tabular.js')
-rw-r--r-- | web/layout/tabular.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/web/layout/tabular.js b/web/layout/tabular.js deleted file mode 100644 index db849e8..0000000 --- a/web/layout/tabular.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2012-2014 Kaarle Ritvanen - * See LICENSE file for license details - */ - -define( - [ - "aconf/type", - "aconf/widget/inline", - "aconf/widget/table/header", - "aconf/widget/table/row" - ], - function(type, Base, TableHeader, TableRow) { - return Base.extend({ - render: function(data, meta) { - this.header = true; - Base.render.call(this, data, meta); - }, - - widget: function(meta) { - if (!type.isTreeNode(meta)) - return Base.widget.call(this, meta); - if (!this.header) return TableRow; - this.header = false; - return TableHeader; - } - }); - } -); |