Mike Taylor [Mon, 19 May 2014 13:10:58 +0000 (14:10 +0100)]
subwidget method correctly sets team of new widget.
Wolfram Schneider [Mon, 19 May 2014 12:14:42 +0000 (12:14 +0000)]
The config value for facet_max_<...> can be a string or a number
"facet_max_xtargets" : "10"
our JS code will convert it to a number.
Mike Taylor [Fri, 16 May 2014 16:15:01 +0000 (17:15 +0100)]
New Credo CSS, nowhere near done.
Mike Taylor [Fri, 16 May 2014 16:14:27 +0000 (17:14 +0100)]
New Credo widget, nowhere near done.
Mike Taylor [Fri, 16 May 2014 15:44:55 +0000 (16:44 +0100)]
Add an mkwsConfig widget to set perpage to 10.
Mike Taylor [Fri, 16 May 2014 15:43:12 +0000 (16:43 +0100)]
Facet captions and maximum counts are now taken from optional
configuration settings "facet_caption_NAME" and "facet_max_NAME",
defaulting to their own hardwired values when these settings are
absent.
Fixes bug MWKS-192.
Mike Taylor [Fri, 16 May 2014 15:26:27 +0000 (16:26 +0100)]
Add new widget type, "Config", which allows configuration settings to
be established for the team. For example:
<div class='mkwsConfig mkwsTeam_foo' perpage='10'></div>
Fixes bug MKWS-191.
Mike Taylor [Fri, 16 May 2014 12:44:46 +0000 (13:44 +0100)]
Rework mike.html to be a playfound for the Credo widget.
Mike Taylor [Fri, 16 May 2014 11:26:30 +0000 (12:26 +0100)]
Rewrite the ReferenceUniverse widget as a one-liner using this.subwidget()
Fixes bug MKWS-190 ("Inheriting from widgets is tricky")
Mike Taylor [Fri, 16 May 2014 11:25:49 +0000 (12:25 +0100)]
New utility function subwidget, making it easier to write compoound
widgets that compose subwidgets (either with each other or with static
HTML).
Mike Taylor [Fri, 16 May 2014 11:04:53 +0000 (12:04 +0100)]
Add missing semicolon.
Mike Taylor [Fri, 16 May 2014 11:04:17 +0000 (12:04 +0100)]
Change to run Jason's Reference Universe widget.
Mike Taylor [Fri, 16 May 2014 11:03:56 +0000 (12:03 +0100)]
this.node is already a jQuery node, so no need to use $(this.node).
(In the past is was a DOMElement, so this WAS necessary.)
Omitting the $(...) call means that the Reference Universe widget is
no longer dependent on our old $ object still being so named, so that
it will work in contexts where another library redefines $. (That's
not a hypothetical: Wolfram saw this happen in his work embeddeding
widgets in Koha.)
Jason Skomorowski [Fri, 16 May 2014 05:00:11 +0000 (01:00 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Jason Skomorowski [Fri, 16 May 2014 04:59:28 +0000 (00:59 -0400)]
Reference Universe widget MKWS-156
Jason Skomorowski [Fri, 16 May 2014 03:46:33 +0000 (23:46 -0400)]
Only init if there are widgets MKWS-166
Mike Taylor [Thu, 15 May 2014 16:19:56 +0000 (17:19 +0100)]
jqnode member renamed just node, now that the old DOMElement node is gone
Mike Taylor [Thu, 15 May 2014 14:37:15 +0000 (15:37 +0100)]
Remove the old "node" member from the widget object. (This pointed to
the DOM node, which we don't actually use any more. Instead we now use
the "jqnode" membver, which points to the corresponding jQuery
object.)
Mike Taylor [Thu, 15 May 2014 14:29:18 +0000 (15:29 +0100)]
Moving MOTD is now done using jqnode rather than underlying DOM node.
... which I *think* means we no longer need the "node" member.
Mike Taylor [Thu, 15 May 2014 14:28:35 +0000 (15:28 +0100)]
Add an MOTD
Mike Taylor [Thu, 15 May 2014 13:13:17 +0000 (14:13 +0100)]
Final changes to logging text (for now, anyway)
Fixes the key part of MKWS-188 ("Tidy up the logging")
Mike Taylor [Thu, 15 May 2014 13:10:41 +0000 (14:10 +0100)]
Logging of widget attributes is more informative.
Mike Taylor [Thu, 15 May 2014 12:58:49 +0000 (13:58 +0100)]
Change case in commented-out log message.
Mike Taylor [Thu, 15 May 2014 12:58:03 +0000 (13:58 +0100)]
Fix case of log message.
Mike Taylor [Thu, 15 May 2014 12:54:56 +0000 (13:54 +0100)]
Tweak wording of log message.
Mike Taylor [Thu, 15 May 2014 12:49:39 +0000 (13:49 +0100)]
Fix case of logging message.
Mike Taylor [Thu, 15 May 2014 12:49:22 +0000 (13:49 +0100)]
Fix case of logging message.
Mike Taylor [Thu, 15 May 2014 12:47:00 +0000 (13:47 +0100)]
Fix wording and capitalistion of several log messages.
Mike Taylor [Thu, 15 May 2014 12:44:47 +0000 (13:44 +0100)]
Remove unnecessary temporary parameter `j'.
FIx old, misleading comment.
Mike Taylor [Thu, 15 May 2014 12:42:45 +0000 (13:42 +0100)]
makeWidgetsWithin uses $ as its jQuery object rather than j.
(Why does j even exist?)
Mike Taylor [Thu, 15 May 2014 12:39:03 +0000 (13:39 +0100)]
Change onBytarget log message from "target" to "bytarget"
Mike Taylor [Thu, 15 May 2014 12:38:05 +0000 (13:38 +0100)]
Change wording of some logging messages.
Mike Taylor [Thu, 15 May 2014 11:42:30 +0000 (12:42 +0100)]
Document the show_switch configuration item in README.
Mike Taylor [Thu, 15 May 2014 11:42:05 +0000 (12:42 +0100)]
Document the show_switch configuration item.
Mike Taylor [Thu, 15 May 2014 11:39:46 +0000 (12:39 +0100)]
The 'Switch' and 'Targets' widgets no-op if config.show_switch is false.
(No point of filling the latter if it can never be displayed.)
Fixes bug MKWS-186 ("make the switch widget optional in mkws_config object")
Mike Taylor [Thu, 15 May 2014 11:38:57 +0000 (12:38 +0100)]
Add new config default, show_switch => true.
Mike Taylor [Thu, 15 May 2014 11:18:11 +0000 (12:18 +0100)]
Tweak another logging message.
Mike Taylor [Thu, 15 May 2014 11:17:33 +0000 (12:17 +0100)]
Tweak logging message.
Mike Taylor [Thu, 15 May 2014 11:16:52 +0000 (12:16 +0100)]
Remove logging of class-based selector.
Mike Taylor [Thu, 15 May 2014 11:16:30 +0000 (12:16 +0100)]
Remove logging when adding a widget to a team.
Mike Taylor [Thu, 15 May 2014 11:15:45 +0000 (12:15 +0100)]
When the class-based selector is used (i.e. in the default case when
the "scan_all_node" configuration element is not set), the selector
includes the classes for each widget-type's resize containers as well
as for the widget elements themselves.
Fixes bug MKWS-187 ("Resizing has broken")
Mike Taylor [Thu, 15 May 2014 10:39:29 +0000 (11:39 +0100)]
jasmine-popup.html now undefined $ after loading MKWS.
Enables it to test the fix for MKWS-185 ("MKWS fails if $ is unset")
Mike Taylor [Thu, 15 May 2014 10:38:52 +0000 (11:38 +0100)]
Use mkws.$(x) throughout in place of $(x).
Enables tests to run correctly when $ has been redefined.
Fixes the last part of MKWS-185 ("MKWS fails if $ is unset")
Mike Taylor [Thu, 15 May 2014 10:24:57 +0000 (11:24 +0100)]
Undefine $ immediately after including MKWS.
Mike Taylor [Thu, 15 May 2014 10:15:52 +0000 (11:15 +0100)]
Various widgets now use w.jqnode instead of $(w.node), and remaining uses of $(x) are changed to mkws.$(x)
Mike Taylor [Thu, 15 May 2014 10:12:09 +0000 (11:12 +0100)]
Widget constructor saves $(node) as the new jqnode member.
Use w.jqnode in place of $(w.node) in a couple of places.
Mike Taylor [Thu, 15 May 2014 10:11:19 +0000 (11:11 +0100)]
Use mkws.$ to access to toJSON method, as some applications that use
their own jQuery might reassign the global $ to be a jQuery object
that doesn't have the JSON extension.
Mike Taylor [Thu, 15 May 2014 10:10:28 +0000 (11:10 +0100)]
widgetNode uses w.jqnode rather than $(w.node)
Mike Taylor [Wed, 14 May 2014 13:52:00 +0000 (14:52 +0100)]
Stash a local copy of $ (the jQuery object) in the mkws object.
Thereafter, we can use mkws.$ to know we're getting the right jQuery
object even if another jQuery version (or other library) redefines $.
When showing and hiding widgets, use w.jqnode instead of $(w.node).
Contributes to the fix of MWKS-185.
Mike Taylor [Wed, 14 May 2014 12:13:19 +0000 (13:13 +0100)]
Undefine $, for testing on bug MKWS-185.
Mike Taylor [Wed, 14 May 2014 11:25:14 +0000 (12:25 +0100)]
Use jQuery v1.10.0 rather than v1.11.0
This is what gets built into mkws-complete.js
Mike Taylor [Wed, 14 May 2014 11:24:22 +0000 (12:24 +0100)]
Use protocol-independent URLs
Mike Taylor [Wed, 14 May 2014 11:23:32 +0000 (12:23 +0100)]
Include each MKWS component separately.
Mike Taylor [Wed, 14 May 2014 11:22:22 +0000 (12:22 +0100)]
Include mkws-widget-categories.js and mkws-widget-builder.js
(Not used, but they're part of the compound mkws.js)
Mike Taylor [Wed, 14 May 2014 08:27:45 +0000 (09:27 +0100)]
Get rid of outdated old sample content.
A simple H1 suffices.
Mike Taylor [Wed, 14 May 2014 08:18:11 +0000 (09:18 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Wolfram Schneider [Mon, 12 May 2014 13:23:04 +0000 (13:23 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Mon, 12 May 2014 13:21:40 +0000 (13:21 +0000)]
fix color of submit button
need to undefined the value from jquery-ui css
Mike Taylor [Fri, 9 May 2014 14:19:52 +0000 (15:19 +0100)]
Class mkwsTerm replaces term in several places in testing.
Completes MKWS-122.
Mike Taylor [Fri, 9 May 2014 14:19:30 +0000 (15:19 +0100)]
Class mkwsTerm replaces term.
Mike Taylor [Fri, 9 May 2014 14:19:22 +0000 (15:19 +0100)]
Class mkwsTerm replaces term.
Mike Taylor [Fri, 9 May 2014 14:05:39 +0000 (15:05 +0100)]
Class mkwsFacetTitle replaces termtitle.
Mike Taylor [Fri, 9 May 2014 14:05:27 +0000 (15:05 +0100)]
Class mkwsFacetTitle replaces termtitle.
Mike Taylor [Fri, 9 May 2014 14:03:26 +0000 (15:03 +0100)]
Class mkwsTermlistsTitle replaces title.
Mike Taylor [Fri, 9 May 2014 14:03:15 +0000 (15:03 +0100)]
Class mkwsTermlistsTitle replaces title.
Mike Taylor [Fri, 9 May 2014 13:43:04 +0000 (14:43 +0100)]
mkwsSummary styling made less precise. That class is now recognised in
any context and on any element.
Mike Taylor [Fri, 9 May 2014 13:41:53 +0000 (14:41 +0100)]
Test for new MKWS-specific class mkwsSummary instead of old generic "record".
Mike Taylor [Fri, 9 May 2014 13:41:47 +0000 (14:41 +0100)]
Style new MKWS-specific class mkwsSummary instead of old generic "record".
Mike Taylor [Fri, 9 May 2014 13:41:37 +0000 (14:41 +0100)]
Emit new MKWS-specific class mkwsSummary instead of old generic "record".
Mike Taylor [Fri, 9 May 2014 13:10:35 +0000 (14:10 +0100)]
Don't wrap mkwsStatus element's "Retrieved records" in a pointless <span>
Mike Taylor [Fri, 9 May 2014 13:08:08 +0000 (14:08 +0100)]
Remove rule for "head" class, which is no longer used.
Add rule to prefix mkwsStat with bold "Status info" text.
Mike Taylor [Fri, 9 May 2014 13:07:33 +0000 (14:07 +0100)]
Do not emit static "Status info" text in the Stat widget: leave it to the CSS.
Mike Taylor [Fri, 9 May 2014 13:06:17 +0000 (14:06 +0100)]
Look for mkwsClientCount class instead of "clients".
Mike Taylor [Fri, 9 May 2014 13:05:47 +0000 (14:05 +0100)]
Generate mkwsClientCount class instead of "clients".
Mike Taylor [Fri, 9 May 2014 12:05:52 +0000 (13:05 +0100)]
Use new MKWS-specific class mkwsRemovable instead of old generic crossout.
Mike Taylor [Fri, 9 May 2014 12:05:36 +0000 (13:05 +0100)]
Use new MKWS-specific class mkwsRemovable instead of old generic crossout.
Mike Taylor [Fri, 9 May 2014 11:58:52 +0000 (12:58 +0100)]
mkwsDetails styling made less precise. That class is now recognised in
any context and on any element.
Mike Taylor [Fri, 9 May 2014 11:57:39 +0000 (12:57 +0100)]
Check for mkwsDetails class, not details.
Mike Taylor [Fri, 9 May 2014 11:56:34 +0000 (12:56 +0100)]
Use new class mkwsDetails instead of generic old "details".
Mike Taylor [Fri, 9 May 2014 11:56:29 +0000 (12:56 +0100)]
Emit new class mkwsDetails instead of generic old "details".
Mike Taylor [Fri, 9 May 2014 11:48:38 +0000 (12:48 +0100)]
Typo
Mike Taylor [Thu, 8 May 2014 16:00:55 +0000 (17:00 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 8 May 2014 15:17:04 +0000 (16:17 +0100)]
Add comments to the selectorForAllWidgets function explaining the
differences between the two selector strings.
Mike Taylor [Thu, 8 May 2014 14:49:38 +0000 (15:49 +0100)]
The selectorForAllWidgets function now returns the old scanning
selector if the "scan_all_nodes" configuration element is set, but
otherwise the new class-based selector that Jason prefers.
Wolfram Schneider [Thu, 8 May 2014 14:24:31 +0000 (14:24 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Thu, 8 May 2014 14:20:49 +0000 (14:20 +0000)]
check for the real jQuery / $ object
Wolfram Schneider [Thu, 8 May 2014 14:20:01 +0000 (14:20 +0000)]
workaround for wrong $ jquery object, MKWS-185
Mike Taylor [Thu, 8 May 2014 14:13:23 +0000 (15:13 +0100)]
Abstract all-widgets selector out into new function selectorForAllWidgets
Wolfram Schneider [Thu, 8 May 2014 13:32:21 +0000 (13:32 +0000)]
test with undefine jQuery and $ object, MKWS-185
Mike Taylor [Thu, 8 May 2014 12:55:18 +0000 (13:55 +0100)]
Remove trailing whitespace.
Mike Taylor [Thu, 8 May 2014 12:55:03 +0000 (13:55 +0100)]
Remove trailing whitespace.
Mike Taylor [Thu, 8 May 2014 12:03:15 +0000 (13:03 +0100)]
No separate tree-walk to create teams: now they are made as needed
during the walk to create widgets.
Mike Taylor [Wed, 7 May 2014 15:56:00 +0000 (16:56 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Wed, 7 May 2014 15:55:48 +0000 (16:55 +0100)]
Update test to look for mkwsTargets rather than mkwsBytarget, which
used to be contained therein but is no longer used.
Mike Taylor [Wed, 7 May 2014 15:54:03 +0000 (16:54 +0100)]
Get rid of unused mkwsSelect class and form-name.
Mike Taylor [Wed, 7 May 2014 15:51:29 +0000 (16:51 +0100)]
mkwsSelected class renamed to more explicit mkwsCurrentPage
Mike Taylor [Wed, 7 May 2014 15:51:26 +0000 (16:51 +0100)]
mkwsSelected class renamed to more explicit mkwsCurrentPage
Mike Taylor [Wed, 7 May 2014 15:42:50 +0000 (16:42 +0100)]
Remove completely unnecessary mkwsBytarget wrapper element.
Mike Taylor [Wed, 7 May 2014 15:38:11 +0000 (16:38 +0100)]
Remove trailing comment.
Mike Taylor [Wed, 7 May 2014 15:17:32 +0000 (16:17 +0100)]
All style rules that used mkwsBytarget now instead use its parent
mkwsTargets instead (which is good, since mkwsBytarget is about to go
away).