From 03bbc1f9885724f165064bf52ba8ccbc0d1bfaec Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Mon, 26 Mar 2012 14:14:53 -0400 Subject: [PATCH] on line 27 of flattener_test.tt2 ... on line 27 of flattener_test.tt2 is the dojoType attribute on a table If you make the value "dojox.grid.DataGrid", you see a grid and everything works fine. If you make the value "openils.widget.FlattenerGrid", which in this example is like a do-nothing-different subclass, you can tell from the debugging console that the grid dijit is somewhat built, but the grid never displays. wth!?!? Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/templates/conify/flattener_test.tt2 | 41 ++++++++++++++++++++++ .../web/js/dojo/openils/widget/FlattenerGrid.js | 11 ++++++ 2 files changed, 52 insertions(+) create mode 100644 Open-ILS/src/templates/conify/flattener_test.tt2 create mode 100644 Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js diff --git a/Open-ILS/src/templates/conify/flattener_test.tt2 b/Open-ILS/src/templates/conify/flattener_test.tt2 new file mode 100644 index 0000000000..e2fd762820 --- /dev/null +++ b/Open-ILS/src/templates/conify/flattener_test.tt2 @@ -0,0 +1,41 @@ +[% WRAPPER base.tt2 %] +[% ctx.page_title = 'Flattener Test' %] + + + + + + + + + + + +
Part NumberMinimum TemperatureMaximum TemperatureTypeThickness
+[% END %] diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js new file mode 100644 index 0000000000..96d296311d --- /dev/null +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -0,0 +1,11 @@ +if (!dojo._hasResource["openils.widget.FlatGrid"]) { + dojo.provide("openils.widget.FlattenerGrid"); + + dojo.require("dojox.grid.DataGrid"); + + dojo.declare( + "openils.widget.FlattenerGrid", + [dojox.grid.DataGrid], { + } + ); +} -- 2.11.0