mkws-moved-to-github.git
10 years agoRemove pointless immediate-execute wrapper.
Mike Taylor [Wed, 26 Mar 2014 11:48:42 +0000 (11:48 +0000)]
Remove pointless immediate-execute wrapper.

10 years agoRemove vacuous try/catch that merely sets mkws_config.error, a member
Mike Taylor [Wed, 26 Mar 2014 11:48:29 +0000 (11:48 +0000)]
Remove vacuous try/catch that merely sets mkws_config.error, a member
that is never checked elsewhere in the code. In fact, this idiot-code
may be the reason that some mkwsHtmlAll errors earlier in development
never seemed to get reported. D'oh!

10 years agoRemove another misleading comment.
Mike Taylor [Wed, 26 Mar 2014 11:46:45 +0000 (11:46 +0000)]
Remove another misleading comment.

10 years agoRemove extraneous comments.
Mike Taylor [Wed, 26 Mar 2014 11:45:59 +0000 (11:45 +0000)]
Remove extraneous comments.

10 years agoEliminate function onFormSubmitEventHandler, use closure instead.
Mike Taylor [Wed, 26 Mar 2014 11:45:34 +0000 (11:45 +0000)]
Eliminate function onFormSubmitEventHandler, use closure instead.

10 years agoReorder functions.
Mike Taylor [Wed, 26 Mar 2014 11:43:10 +0000 (11:43 +0000)]
Reorder functions.

10 years agoRemove extraneous comment.
Mike Taylor [Wed, 26 Mar 2014 11:41:14 +0000 (11:41 +0000)]
Remove extraneous comment.

10 years agoBlank line
Mike Taylor [Wed, 26 Mar 2014 11:40:57 +0000 (11:40 +0000)]
Blank line

10 years agolog is declared as a function.
Mike Taylor [Wed, 26 Mar 2014 11:38:57 +0000 (11:38 +0000)]
log is declared as a function.

10 years agoMore comments
Mike Taylor [Wed, 26 Mar 2014 11:38:23 +0000 (11:38 +0000)]
More comments

10 years agoComment formatting.
Mike Taylor [Wed, 26 Mar 2014 11:37:31 +0000 (11:37 +0000)]
Comment formatting.

10 years agoReorder function-list in comment.
Mike Taylor [Wed, 26 Mar 2014 11:36:39 +0000 (11:36 +0000)]
Reorder function-list in comment.

10 years agoComment typo.
Mike Taylor [Wed, 26 Mar 2014 11:36:00 +0000 (11:36 +0000)]
Comment typo.

10 years agoMore comment.
Mike Taylor [Wed, 26 Mar 2014 11:28:15 +0000 (11:28 +0000)]
More comment.

10 years agoComment typo.
Mike Taylor [Wed, 26 Mar 2014 11:27:39 +0000 (11:27 +0000)]
Comment typo.

10 years agoRemove misleading logging.
Mike Taylor [Wed, 26 Mar 2014 11:25:15 +0000 (11:25 +0000)]
Remove misleading logging.

10 years agoTypo in error message.
Mike Taylor [Wed, 26 Mar 2014 11:24:28 +0000 (11:24 +0000)]
Typo in error message.

10 years agoAdd comment
Mike Taylor [Wed, 26 Mar 2014 11:22:38 +0000 (11:22 +0000)]
Add comment

10 years agomkws.log now assigned from existing function rather than vice versa.
Mike Taylor [Wed, 26 Mar 2014 11:21:39 +0000 (11:21 +0000)]
mkws.log now assigned from existing function rather than vice versa.

10 years agohandleNodeWithTeam is now a local function, not a member.
Mike Taylor [Wed, 26 Mar 2014 11:20:18 +0000 (11:20 +0000)]
handleNodeWithTeam is now a local function, not a member.

10 years agoSimplify creation of search-form by eliminating unnecessary
Mike Taylor [Wed, 26 Mar 2014 11:18:01 +0000 (11:18 +0000)]
Simplify creation of search-form by eliminating unnecessary
mkws.handleNodeWithTeam invocation.

10 years agoTwo-team version.
Mike Taylor [Wed, 26 Mar 2014 11:17:21 +0000 (11:17 +0000)]
Two-team version.

10 years agoResizebale.
Mike Taylor [Wed, 26 Mar 2014 11:11:49 +0000 (11:11 +0000)]
Resizebale.

10 years agoSimplify invocations of resizePage: no need for closures.
Mike Taylor [Wed, 26 Mar 2014 11:10:31 +0000 (11:10 +0000)]
Simplify invocations of resizePage: no need for closures.

10 years agoresizePage() is now a local function, not a member.
Mike Taylor [Wed, 26 Mar 2014 11:09:39 +0000 (11:09 +0000)]
resizePage() is now a local function, not a member.

10 years agoRemove unused "paz" member-variable from global mkws object.
Mike Taylor [Wed, 26 Mar 2014 11:05:13 +0000 (11:05 +0000)]
Remove unused "paz" member-variable from global mkws object.

10 years agoMove defaultTemplate function from mkws-core.js to mkws-team.js (where it's used)
Mike Taylor [Wed, 26 Mar 2014 11:04:24 +0000 (11:04 +0000)]
Move defaultTemplate function from mkws-core.js to mkws-team.js (where it's used)

10 years agoMove getParameterByName utility function from mkws-core.js to mkws-team.js (where...
Mike Taylor [Wed, 26 Mar 2014 11:02:56 +0000 (11:02 +0000)]
Move getParameterByName utility function from mkws-core.js to mkws-team.js (where it's used)

10 years agoMove widget team out of mkws-core.js into its own file mkws-team.js
Mike Taylor [Wed, 26 Mar 2014 10:39:26 +0000 (10:39 +0000)]
Move widget team out of mkws-core.js into its own file mkws-team.js

10 years agoMove actual widgets out of mkws-core.js into their own file mkws-widgets.js
Mike Taylor [Wed, 26 Mar 2014 10:37:52 +0000 (10:37 +0000)]
Move actual widgets out of mkws-core.js into their own file mkws-widgets.js

10 years agoAdd mkws-handlebars.js to COMPONENTS
Mike Taylor [Wed, 26 Mar 2014 10:32:52 +0000 (10:32 +0000)]
Add mkws-handlebars.js to COMPONENTS
Rebuild of mkws.js depends on Makefile

10 years agoNew
Mike Taylor [Wed, 26 Mar 2014 10:32:24 +0000 (10:32 +0000)]
New

10 years agoMove Handlebars helpers out to their own new file, mkws-handlebars.js
Mike Taylor [Wed, 26 Mar 2014 10:32:16 +0000 (10:32 +0000)]
Move Handlebars helpers out to their own new file, mkws-handlebars.js

10 years agoRemove unused MKWS_JS definition.
Mike Taylor [Wed, 26 Mar 2014 10:13:36 +0000 (10:13 +0000)]
Remove unused MKWS_JS definition.

10 years agoGenerate mkws.js from $(COMPONENTS) (currently just mkws-core.js)
Mike Taylor [Wed, 26 Mar 2014 10:13:19 +0000 (10:13 +0000)]
Generate mkws.js from $(COMPONENTS) (currently just mkws-core.js)

10 years agoSort.
Mike Taylor [Wed, 26 Mar 2014 10:12:58 +0000 (10:12 +0000)]
Sort.

10 years agoIgnore generated mkws.js
Mike Taylor [Wed, 26 Mar 2014 10:12:14 +0000 (10:12 +0000)]
Ignore generated mkws.js

10 years agoMove mkws.js to mkws-core.js: initially a single component
Mike Taylor [Wed, 26 Mar 2014 10:11:04 +0000 (10:11 +0000)]
Move mkws.js to mkws-core.js: initially a single component

10 years agoimprove distclean
Wolfram Schneider [Wed, 26 Mar 2014 09:20:27 +0000 (09:20 +0000)]
improve distclean

10 years agoadd copyright
Wolfram Schneider [Wed, 26 Mar 2014 09:19:56 +0000 (09:19 +0000)]
add copyright

10 years agoadd help target
Wolfram Schneider [Wed, 26 Mar 2014 09:19:35 +0000 (09:19 +0000)]
add help target

10 years agoadd distclean
Wolfram Schneider [Wed, 26 Mar 2014 09:17:41 +0000 (09:17 +0000)]
add distclean

10 years agoIgnore generated NEWS and VERSION files. separate-src
Mike Taylor [Tue, 25 Mar 2014 17:33:21 +0000 (17:33 +0000)]
Ignore generated NEWS and VERSION files.

10 years agoInstall VERSION and NEWS files.
Mike Taylor [Tue, 25 Mar 2014 17:32:36 +0000 (17:32 +0000)]
Install VERSION and NEWS files.

10 years agoIgnore copied file mkws-doc.css
Mike Taylor [Tue, 25 Mar 2014 17:31:07 +0000 (17:31 +0000)]
Ignore copied file mkws-doc.css

10 years agoAdd mkws-doc.css to list of installable files.
Mike Taylor [Tue, 25 Mar 2014 17:30:38 +0000 (17:30 +0000)]
Add mkws-doc.css to list of installable files.

10 years agoIgnore generated documentation files README.html and whitepaper.html
Mike Taylor [Tue, 25 Mar 2014 17:29:25 +0000 (17:29 +0000)]
Ignore generated documentation files README.html and whitepaper.html

10 years agoIgnore two verbatim-copied files: mkws.js itself and mkws-jquery.js
Mike Taylor [Tue, 25 Mar 2014 17:28:51 +0000 (17:28 +0000)]
Ignore two verbatim-copied files: mkws.js itself and mkws-jquery.js

10 years agoAdd actual file-copying rule.
Mike Taylor [Tue, 25 Mar 2014 17:28:10 +0000 (17:28 +0000)]
Add actual file-copying rule.
Remove old **make-default** target, now that "install" is default.

10 years agoMore generated files (.pdf, .odt) to ignore.
Mike Taylor [Tue, 25 Mar 2014 17:26:50 +0000 (17:26 +0000)]
More generated files (.pdf, .odt) to ignore.

10 years agoNew doc/.gitignore, omits generated HTML files.
Mike Taylor [Tue, 25 Mar 2014 17:26:18 +0000 (17:26 +0000)]
New doc/.gitignore, omits generated HTML files.

10 years agoAdd rules to install compiled markdown->html files.
Mike Taylor [Tue, 25 Mar 2014 17:25:41 +0000 (17:25 +0000)]
Add rules to install compiled markdown->html files.

10 years agoAdd mkws-jquery.js to installable list.
Mike Taylor [Tue, 25 Mar 2014 17:20:05 +0000 (17:20 +0000)]
Add mkws-jquery.js to installable list.

10 years agoAdd mkws.js itself to the installable list.
Mike Taylor [Tue, 25 Mar 2014 17:19:03 +0000 (17:19 +0000)]
Add mkws.js itself to the installable list.

10 years agoNew tools/htdocs/.gitignore
Mike Taylor [Tue, 25 Mar 2014 17:16:51 +0000 (17:16 +0000)]
New tools/htdocs/.gitignore
Ignore files generated and installed from ../../src

10 years agoAdd new "install" and "uninstall" rules.
Mike Taylor [Tue, 25 Mar 2014 17:15:48 +0000 (17:15 +0000)]
Add new "install" and "uninstall" rules.

10 years agoUpdate "help" target
Mike Taylor [Tue, 25 Mar 2014 17:12:11 +0000 (17:12 +0000)]
Update "help" target

10 years agoRemove extraneous comment.
Mike Taylor [Tue, 25 Mar 2014 17:11:55 +0000 (17:11 +0000)]
Remove extraneous comment.

10 years agoRemove mkws-js-min rule, this is now the default "all".
Mike Taylor [Tue, 25 Mar 2014 17:11:41 +0000 (17:11 +0000)]
Remove mkws-js-min rule, this is now the default "all".

10 years agoRemove redundant target
Mike Taylor [Tue, 25 Mar 2014 17:10:57 +0000 (17:10 +0000)]
Remove redundant target

10 years agoGet rid of abstraction ${MKWS_WS} -- other similar files don't have one.
Mike Taylor [Tue, 25 Mar 2014 17:10:01 +0000 (17:10 +0000)]
Get rid of abstraction ${MKWS_WS} -- other similar files don't have one.

10 years agoAdd new INSTALLABLE definition of files to be copied to ../tools/htdocs
Mike Taylor [Tue, 25 Mar 2014 17:09:02 +0000 (17:09 +0000)]
Add new INSTALLABLE definition of files to be copied to ../tools/htdocs

10 years agoMove tools/htdocs/.gitignore to ../../src
Mike Taylor [Tue, 25 Mar 2014 16:18:03 +0000 (16:18 +0000)]
Move tools/htdocs/.gitignore to ../../src

10 years agoGenerated mkws-complete.js now includes mkws-jquery.js
Mike Taylor [Tue, 25 Mar 2014 16:16:47 +0000 (16:16 +0000)]
Generated mkws-complete.js now includes mkws-jquery.js

10 years agoRemove mkws-complete-syntax-check target, an alias for mkws-js-min
Mike Taylor [Tue, 25 Mar 2014 16:13:31 +0000 (16:13 +0000)]
Remove mkws-complete-syntax-check target, an alias for mkws-js-min

10 years agoNew doc/Makefile, uses rules extracted from ../src/Makefile
Mike Taylor [Tue, 25 Mar 2014 15:52:11 +0000 (15:52 +0000)]
New doc/Makefile, uses rules extracted from ../src/Makefile

10 years agoMove documentation-related rules out to new ../doc/Makefile
Mike Taylor [Tue, 25 Mar 2014 15:51:12 +0000 (15:51 +0000)]
Move documentation-related rules out to new ../doc/Makefile

10 years agoFix top-level Makefile to invoke make on src and doc
Mike Taylor [Tue, 25 Mar 2014 15:38:39 +0000 (15:38 +0000)]
Fix top-level Makefile to invoke make on src and doc

10 years agoMove source-code into new top-level src directory
Mike Taylor [Tue, 25 Mar 2014 15:35:56 +0000 (15:35 +0000)]
Move source-code into new top-level src directory

10 years agoMove documentation files from tools/htdocs into new top-level doc directory
Mike Taylor [Tue, 25 Mar 2014 15:13:53 +0000 (15:13 +0000)]
Move documentation files from tools/htdocs into new top-level doc directory

10 years agoHasn't been needed for a long time
Mike Taylor [Tue, 25 Mar 2014 15:12:35 +0000 (15:12 +0000)]
Hasn't been needed for a long time

10 years agoThis was long ago obsoleted by an appendix of the whitepaper
Mike Taylor [Tue, 25 Mar 2014 15:11:59 +0000 (15:11 +0000)]
This was long ago obsoleted by an appendix of the whitepaper

10 years agodebug function uses mkws.log rather than old mkws.debug.
Mike Taylor [Tue, 25 Mar 2014 11:50:21 +0000 (11:50 +0000)]
debug function uses mkws.log rather than old mkws.debug.

10 years agoTypo in comment.
Mike Taylor [Tue, 25 Mar 2014 11:42:35 +0000 (11:42 +0000)]
Typo in comment.

10 years agoWhen the log_level setting is not provided, fall back to the old
Mike Taylor [Tue, 25 Mar 2014 11:37:49 +0000 (11:37 +0000)]
When the log_level setting is not provided, fall back to the old
"debug_level" setting for backwards compatibility.

10 years agoUse mkws.log instead of old mkws.debug
Mike Taylor [Tue, 25 Mar 2014 11:26:35 +0000 (11:26 +0000)]
Use mkws.log instead of old mkws.debug

10 years agoRename all debug() functions to log()
Mike Taylor [Tue, 25 Mar 2014 11:26:19 +0000 (11:26 +0000)]
Rename all debug() functions to log()

10 years agoAdd an mkwsMOTD element.,
Mike Taylor [Tue, 25 Mar 2014 11:26:08 +0000 (11:26 +0000)]
Add an mkwsMOTD element.,

10 years agoAdd widget-level debug() function.
Mike Taylor [Tue, 25 Mar 2014 11:18:33 +0000 (11:18 +0000)]
Add widget-level debug() function.

10 years agoChange around details of how record elements are recognised.
Mike Taylor [Tue, 25 Mar 2014 10:54:20 +0000 (10:54 +0000)]
Change around details of how record elements are recognised.
We now use classes for details divs.

10 years agomkwsDet elements now also move the team to a CSS class.
Mike Taylor [Mon, 24 Mar 2014 17:39:12 +0000 (17:39 +0000)]
mkwsDet elements now also move the team to a CSS class.

10 years agoRecord elements now have team-name removed from their ID, but have the
Mike Taylor [Mon, 24 Mar 2014 17:25:58 +0000 (17:25 +0000)]
Record elements now have team-name removed from their ID, but have the
usual mkwsTeam_NAME in their CSS classes. This makes them more like
widgets, and indeed they are now candidates for true widgetification.

10 years agoAbstract record-element ID generation to new recordElementId function
Mike Taylor [Mon, 24 Mar 2014 16:56:15 +0000 (16:56 +0000)]
Abstract record-element ID generation to new recordElementId function
This is used by promoteRecords and onRecord
Sanitised ID into a form that can be used in a jQuery selector.

10 years agoRemove extraneous debugging.
Mike Taylor [Fri, 21 Mar 2014 17:08:49 +0000 (17:08 +0000)]
Remove extraneous debugging.

10 years agoInvert submitted() login in Sort and Perpage widgets.
Mike Taylor [Fri, 21 Mar 2014 17:08:40 +0000 (17:08 +0000)]
Invert submitted() login in Sort and Perpage widgets.
Just to simplify the code.

10 years agoSimplify Sort and Perpage widget to use anonymous closures.
Mike Taylor [Fri, 21 Mar 2014 17:07:28 +0000 (17:07 +0000)]
Simplify Sort and Perpage widget to use anonymous closures.
Disposes of the onSortChange and onPerpageChange functions.

10 years agoNo "sort"/"perpage" events in the pub/sub queue.
Mike Taylor [Fri, 21 Mar 2014 17:05:50 +0000 (17:05 +0000)]
No "sort"/"perpage" events in the pub/sub queue.

10 years agoReorder lines.
Mike Taylor [Fri, 21 Mar 2014 17:00:53 +0000 (17:00 +0000)]
Reorder lines.

10 years agoPub/subify two more widgets: Sort and Perpage.
Mike Taylor [Fri, 21 Mar 2014 17:00:19 +0000 (17:00 +0000)]
Pub/subify two more widgets: Sort and Perpage.
Involves:
* adding one new team accessor, submitted
* adding two new team setters, set_sortOrder and set_perpage
* making team method resetPage externally visible
* adding new resetPage externally visible  team method reShow

10 years agoSimplify a lot of code that unnecessarily checks that a jQuery
Mike Taylor [Fri, 21 Mar 2014 16:34:54 +0000 (16:34 +0000)]
Simplify a lot of code that unnecessarily checks that a jQuery
node-set is non-empty before doing something with it. Of course, doing
anything to an empty node-set no-ops anyway.

10 years agoVertical whitespace.
Mike Taylor [Fri, 21 Mar 2014 12:50:47 +0000 (12:50 +0000)]
Vertical whitespace.

10 years agoReorder some functions.
Mike Taylor [Fri, 21 Mar 2014 12:49:50 +0000 (12:49 +0000)]
Reorder some functions.

10 years agoredrawNavi was a one-line function invoked in only one place.
Mike Taylor [Fri, 21 Mar 2014 12:48:42 +0000 (12:48 +0000)]
redrawNavi was a one-line function invoked in only one place.
Inline it.

10 years agoSwitch order of resetPage/redrawNavi invocations.
Mike Taylor [Fri, 21 Mar 2014 12:48:15 +0000 (12:48 +0000)]
Switch order of resetPage/redrawNavi invocations.

10 years agoEvery single invocation of triggerSearch was preceded by invocations
Mike Taylor [Fri, 21 Mar 2014 12:47:35 +0000 (12:47 +0000)]
Every single invocation of triggerSearch was preceded by invocations
of redrawNavi and resetPage. I removed those invocations and now
triggerSearch itself starts by invoking them.

10 years agoloadSelect is removed: no longer needed.
Mike Taylor [Fri, 21 Mar 2014 12:44:19 +0000 (12:44 +0000)]
loadSelect is removed: no longer needed.

10 years agoonSortChange and onPerpageChange set their member variables directly.
Mike Taylor [Fri, 21 Mar 2014 12:34:56 +0000 (12:34 +0000)]
onSortChange and onPerpageChange set their member variables directly.
loadSelect() is now just an assertion that things are set correctly.

10 years agoBreak mkwsResults down to its components.
Mike Taylor [Fri, 21 Mar 2014 12:11:26 +0000 (12:11 +0000)]
Break mkwsResults down to its components.

Use jQuery 1.11, to avoid stupid "event.returnValue is
deprecated. Please use the standard event.preventDefault() instead"
warning.

10 years agoSplit onSelectDdChange into two separate functions, onSortChange and onPerpageChange.
Mike Taylor [Fri, 21 Mar 2014 11:00:06 +0000 (11:00 +0000)]
Split onSelectDdChange into two separate functions, onSortChange and onPerpageChange.
Prepares the way for pub/sub widgetising those controls.

10 years agoRemove unnecessary test.
Mike Taylor [Thu, 20 Mar 2014 11:56:32 +0000 (11:56 +0000)]
Remove unnecessary test.