mkws-moved-to-github.git
9 years agoUse mkws.$(x) throughout in place of $(x).
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")

9 years agoUndefine $ immediately after including MKWS.
Mike Taylor [Thu, 15 May 2014 10:24:57 +0000 (11:24 +0100)]
Undefine $ immediately after including MKWS.

9 years agoVarious widgets now use w.jqnode instead of $(w.node), and remaining uses of $(x...
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)

9 years agoWidget constructor saves $(node) as the new jqnode member.
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.

9 years agoUse mkws.$ to access to toJSON method, as some applications that use
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.

9 years agowidgetNode uses w.jqnode rather than $(w.node)
Mike Taylor [Thu, 15 May 2014 10:10:28 +0000 (11:10 +0100)]
widgetNode uses w.jqnode rather than $(w.node)

9 years agoStash a local copy of $ (the jQuery object) in the mkws object.
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.

9 years agoUndefine $, for testing on bug MKWS-185.
Mike Taylor [Wed, 14 May 2014 12:13:19 +0000 (13:13 +0100)]
Undefine $, for testing on bug MKWS-185.

9 years agoUse jQuery v1.10.0 rather than v1.11.0
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

9 years agoUse protocol-independent URLs
Mike Taylor [Wed, 14 May 2014 11:24:22 +0000 (12:24 +0100)]
Use protocol-independent URLs

9 years agoInclude each MKWS component separately.
Mike Taylor [Wed, 14 May 2014 11:23:32 +0000 (12:23 +0100)]
Include each MKWS component separately.

9 years agoInclude mkws-widget-categories.js and mkws-widget-builder.js
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)

9 years agoGet rid of outdated old sample content.
Mike Taylor [Wed, 14 May 2014 08:27:45 +0000 (09:27 +0100)]
Get rid of outdated old sample content.
A simple H1 suffices.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/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

9 years agofix color of submit button
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

9 years agoClass mkwsTerm replaces term in several places in testing.
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.

9 years agoClass mkwsTerm replaces term.
Mike Taylor [Fri, 9 May 2014 14:19:30 +0000 (15:19 +0100)]
Class mkwsTerm replaces term.

9 years agoClass mkwsTerm replaces term.
Mike Taylor [Fri, 9 May 2014 14:19:22 +0000 (15:19 +0100)]
Class mkwsTerm replaces term.

9 years agoClass mkwsFacetTitle replaces termtitle.
Mike Taylor [Fri, 9 May 2014 14:05:39 +0000 (15:05 +0100)]
Class mkwsFacetTitle replaces termtitle.

9 years agoClass mkwsFacetTitle replaces termtitle.
Mike Taylor [Fri, 9 May 2014 14:05:27 +0000 (15:05 +0100)]
Class mkwsFacetTitle replaces termtitle.

9 years agoClass mkwsTermlistsTitle replaces title.
Mike Taylor [Fri, 9 May 2014 14:03:26 +0000 (15:03 +0100)]
Class mkwsTermlistsTitle replaces title.

9 years agoClass mkwsTermlistsTitle replaces title.
Mike Taylor [Fri, 9 May 2014 14:03:15 +0000 (15:03 +0100)]
Class mkwsTermlistsTitle replaces title.

9 years agomkwsSummary styling made less precise. That class is now recognised in
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.

9 years agoTest for new MKWS-specific class mkwsSummary instead of old generic "record".
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".

9 years agoStyle 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".

9 years agoEmit 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".

9 years agoDon't wrap mkwsStatus element's "Retrieved records" in a pointless <span>
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>

9 years agoRemove rule for "head" class, which is no longer used.
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.

9 years agoDo not emit static "Status info" text in the Stat widget: leave it to the CSS.
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.

9 years agoLook for mkwsClientCount class instead of "clients".
Mike Taylor [Fri, 9 May 2014 13:06:17 +0000 (14:06 +0100)]
Look for mkwsClientCount class instead of "clients".

9 years agoGenerate mkwsClientCount class instead of "clients".
Mike Taylor [Fri, 9 May 2014 13:05:47 +0000 (14:05 +0100)]
Generate mkwsClientCount class instead of "clients".

9 years agoUse new MKWS-specific class mkwsRemovable instead of old generic crossout.
Mike Taylor [Fri, 9 May 2014 12:05:52 +0000 (13:05 +0100)]
Use new MKWS-specific class mkwsRemovable instead of old generic crossout.

9 years agoUse 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.

9 years agomkwsDetails styling made less precise. That class is now recognised in
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.

9 years agoCheck for mkwsDetails class, not details.
Mike Taylor [Fri, 9 May 2014 11:57:39 +0000 (12:57 +0100)]
Check for mkwsDetails class, not details.

9 years agoUse new class mkwsDetails instead of generic old "details".
Mike Taylor [Fri, 9 May 2014 11:56:34 +0000 (12:56 +0100)]
Use new class mkwsDetails instead of generic old "details".

9 years agoEmit 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".

9 years agoTypo
Mike Taylor [Fri, 9 May 2014 11:48:38 +0000 (12:48 +0100)]
Typo

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

9 years agoAdd comments to the selectorForAllWidgets function explaining the
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.

9 years agoThe selectorForAllWidgets function now returns the old scanning
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.

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
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

9 years agocheck for the real jQuery / $ object
Wolfram Schneider [Thu, 8 May 2014 14:20:49 +0000 (14:20 +0000)]
check for the real jQuery / $ object

9 years agoworkaround for wrong $ jquery object, MKWS-185
Wolfram Schneider [Thu, 8 May 2014 14:20:01 +0000 (14:20 +0000)]
workaround for wrong $ jquery object, MKWS-185

9 years agoAbstract all-widgets selector out into new function selectorForAllWidgets
Mike Taylor [Thu, 8 May 2014 14:13:23 +0000 (15:13 +0100)]
Abstract all-widgets selector out into new function selectorForAllWidgets

9 years agotest with undefine jQuery and $ object, MKWS-185
Wolfram Schneider [Thu, 8 May 2014 13:32:21 +0000 (13:32 +0000)]
test with undefine jQuery and $ object, MKWS-185

9 years agoRemove trailing whitespace.
Mike Taylor [Thu, 8 May 2014 12:55:18 +0000 (13:55 +0100)]
Remove trailing whitespace.

9 years agoRemove trailing whitespace.
Mike Taylor [Thu, 8 May 2014 12:55:03 +0000 (13:55 +0100)]
Remove trailing whitespace.

9 years agoNo separate tree-walk to create teams: now they are made as needed
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.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

9 years agoUpdate test to look for mkwsTargets rather than mkwsBytarget, which
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.

9 years agoGet rid of unused mkwsSelect class and form-name.
Mike Taylor [Wed, 7 May 2014 15:54:03 +0000 (16:54 +0100)]
Get rid of unused mkwsSelect class and form-name.

9 years agomkwsSelected class renamed to more explicit mkwsCurrentPage
Mike Taylor [Wed, 7 May 2014 15:51:29 +0000 (16:51 +0100)]
mkwsSelected class renamed to more explicit mkwsCurrentPage

9 years agomkwsSelected 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

9 years agoRemove completely unnecessary mkwsBytarget wrapper element.
Mike Taylor [Wed, 7 May 2014 15:42:50 +0000 (16:42 +0100)]
Remove completely unnecessary mkwsBytarget wrapper element.

9 years agoRemove trailing comment.
Mike Taylor [Wed, 7 May 2014 15:38:11 +0000 (16:38 +0100)]
Remove trailing comment.

9 years agoAll style rules that used mkwsBytarget now instead use its parent
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).

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Wed, 7 May 2014 14:25:14 +0000 (14:25 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

9 years agotrailing comma breaks IE8
Wolfram Schneider [Wed, 7 May 2014 14:15:38 +0000 (14:15 +0000)]
trailing comma breaks IE8

found by google closure-compiler

9 years agoContainer widgets get a default null implementation to avoid log-splurging.
Mike Taylor [Wed, 7 May 2014 13:16:03 +0000 (14:16 +0100)]
Container widgets get a default null implementation to avoid log-splurging.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:30:50 +0000 (13:30 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:30:41 +0000 (13:30 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:30:23 +0000 (13:30 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:30:14 +0000 (13:30 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:30:03 +0000 (13:30 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:29:54 +0000 (13:29 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:29:42 +0000 (13:29 +0100)]
Tabs to spaces.

9 years agoTabs to spaces.
Mike Taylor [Wed, 7 May 2014 12:29:23 +0000 (13:29 +0100)]
Tabs to spaces.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:28:04 +0000 (13:28 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:22:11 +0000 (13:22 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:21:56 +0000 (13:21 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:21:46 +0000 (13:21 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:21:40 +0000 (13:21 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:20:02 +0000 (13:20 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:19:54 +0000 (13:19 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:19:45 +0000 (13:19 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:19:31 +0000 (13:19 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:19:02 +0000 (13:19 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:18:44 +0000 (13:18 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:17:08 +0000 (13:17 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:16:48 +0000 (13:16 +0100)]
Re-indent.

9 years agoRe-indent.
Mike Taylor [Wed, 7 May 2014 12:16:17 +0000 (13:16 +0100)]
Re-indent.

9 years agoWhitespace
Mike Taylor [Tue, 6 May 2014 15:47:54 +0000 (16:47 +0100)]
Whitespace

9 years agoWhitespace
Mike Taylor [Tue, 6 May 2014 15:47:04 +0000 (16:47 +0100)]
Whitespace

9 years agoMerge the two(!) definitions of Results widget.
Mike Taylor [Fri, 2 May 2014 16:43:39 +0000 (17:43 +0100)]
Merge the two(!) definitions of Results widget.

The new one (generate internal HTML) was overriding the old one (set
up notifications of autosearch events), so that autosearch no longer
worked on Results widgets. (We didn't notice because most autosearch
demos use Records widgets.)

9 years agoMove code to set language from command line out of mkws-team.js into
Mike Taylor [Fri, 2 May 2014 16:10:03 +0000 (17:10 +0100)]
Move code to set language from command line out of mkws-team.js into
mkws-core.js

9 years agoReorder functions.
Mike Taylor [Fri, 2 May 2014 16:02:51 +0000 (17:02 +0100)]
Reorder functions.

9 years agoThe switchview show/hide is done using jQuery rather than directly
Mike Taylor [Fri, 2 May 2014 16:02:17 +0000 (17:02 +0100)]
The switchview show/hide is done using jQuery rather than directly
messing with the CSS.

9 years agoMove the M function (translation) from mkws-team.js to mkws-core.js,
Mike Taylor [Fri, 2 May 2014 15:56:11 +0000 (16:56 +0100)]
Move the M function (translation) from mkws-team.js to mkws-core.js,
since it's not team-specific (and never really was).

9 years agoIn fact, remove the local alias M completely, since it's not used!
Mike Taylor [Fri, 2 May 2014 15:54:39 +0000 (16:54 +0100)]
In fact, remove the local alias M completely, since it's not used!

9 years agoDelete obsolete comment.
Mike Taylor [Fri, 2 May 2014 15:51:54 +0000 (16:51 +0100)]
Delete obsolete comment.

9 years agomkws.M is defined, and M made a local alias for it, rather than the
Mike Taylor [Fri, 2 May 2014 15:51:37 +0000 (16:51 +0100)]
mkws.M is defined, and M made a local alias for it, rather than the
other way around. Again, this is just about being honest.

9 years agoLanguage-setting code also honestly uses mkws.config.lang instead of m_config.lang.
Mike Taylor [Fri, 2 May 2014 15:50:14 +0000 (16:50 +0100)]
Language-setting code also honestly uses mkws.config.lang instead of m_config.lang.

9 years agoThe M function (translation) looks up mkws.config.lang rather than
Mike Taylor [Fri, 2 May 2014 15:46:01 +0000 (16:46 +0100)]
The M function (translation) looks up mkws.config.lang rather than
m_config.lang. Doing the latter was lie, since this function gets
called as mkws.M much of the time, and so gets a randomly chosen
team's lang setting; and all teams always have the same lang setting
anyway, since there's no way to set it differently per team.

9 years agoRemove obsolete comment.
Mike Taylor [Fri, 2 May 2014 15:36:32 +0000 (16:36 +0100)]
Remove obsolete comment.

9 years agoThe team-private findnode function is no longer made visible as the
Mike Taylor [Fri, 2 May 2014 15:10:42 +0000 (16:10 +0100)]
The team-private findnode function is no longer made visible as the
team.findnode method. It's not actually been used for a while now,
since widgets know their own nodes. Its continued existence is a bit
of an embarrassment for various reasons, including its knowledge of
how "AUTO" is special and the extremely complex jQuery selectors is
generates in some cases. It would be good to get rid of it completely,
but it's presently (ab)used for full-record display. Is there a good
way to widgetify that?

9 years agoPrefix names of all Handlebars helpers with "mkws-":
Mike Taylor [Fri, 2 May 2014 14:04:10 +0000 (15:04 +0100)]
Prefix names of all Handlebars helpers with "mkws-":
mkws-json
mkws-paragraphs
mkws-translate
mkws-attr
mkws-if-any
mkws-first
mkws-commaList
mkws-index1

This fixes MKWS-172 ("Prefix Handlebars helpers"), which OK was only a
P5, but it irritated my sense of neatness having a P5 hanging around
in the MKWS area with all the good bugs.

9 years agoTweak name of resize-narrow/resize-wide events (now including a hyphen).
Mike Taylor [Thu, 1 May 2014 16:03:31 +0000 (17:03 +0100)]
Tweak name of resize-narrow/resize-wide events (now including a hyphen).
Remove old hardwired hide/show code depending on list.

9 years agoSwitch and Lang widgets hide themselves when the window is narrow.
Mike Taylor [Thu, 1 May 2014 16:02:02 +0000 (17:02 +0100)]
Switch and Lang widgets hide themselves when the window is narrow.