Mike Taylor [Thu, 27 Mar 2014 13:15:43 +0000 (13:15 +0000)]
Move mkws.log out of immediate-execute wrapper.
Mike Taylor [Thu, 27 Mar 2014 12:16:49 +0000 (12:16 +0000)]
Fix parameter name.
Mike Taylor [Thu, 27 Mar 2014 12:15:48 +0000 (12:15 +0000)]
Remove do-nothing invocation wrapper.
Mike Taylor [Thu, 27 Mar 2014 12:03:46 +0000 (12:03 +0000)]
Whitespace
Mike Taylor [Thu, 27 Mar 2014 12:01:57 +0000 (12:01 +0000)]
Whitespace.
Mike Taylor [Thu, 27 Mar 2014 12:01:08 +0000 (12:01 +0000)]
Whitespace.
Mike Taylor [Thu, 27 Mar 2014 11:32:52 +0000 (11:32 +0000)]
Change logging message.
Mike Taylor [Thu, 27 Mar 2014 11:32:33 +0000 (11:32 +0000)]
Whitespace.
Mike Taylor [Thu, 27 Mar 2014 11:31:58 +0000 (11:31 +0000)]
Got rid of ALL promotion-function names.
All is now done by passing anonymous functions to registerWidgetType.
Mike Taylor [Wed, 26 Mar 2014 17:49:07 +0000 (17:49 +0000)]
Include mkws-widget-authname.js in COMPONENTS.
Mike Taylor [Wed, 26 Mar 2014 17:48:50 +0000 (17:48 +0000)]
New file, and the first standalone widget:
mkws-widget-authname.js implements the Authname widget.
Fixes bug MKWS-145.
Mike Taylor [Wed, 26 Mar 2014 17:48:11 +0000 (17:48 +0000)]
Add mkwsAuthname widget, and CSS styling.
Mike Taylor [Wed, 26 Mar 2014 17:42:33 +0000 (17:42 +0000)]
Instead of saving authName in the mkws structure, publish it to the
"authenticated" queue of each team.
Mike Taylor [Wed, 26 Mar 2014 17:39:25 +0000 (17:39 +0000)]
Remove logging of authName
Mike Taylor [Wed, 26 Mar 2014 17:33:31 +0000 (17:33 +0000)]
Save displayName of authenticated library, if any, as mkws.authName.
Part of MKWS-145 (Make a library-name widget).
Mike Taylor [Wed, 26 Mar 2014 17:32:22 +0000 (17:32 +0000)]
Single version with low-level components.
Mike Taylor [Wed, 26 Mar 2014 17:19:45 +0000 (17:19 +0000)]
The Perpage widget's promotion-function is now anonymous.
This feels strangely daring. It's very neat and concise, but may be
wandering dangerously close to the line where elegance is bought at
the price of incomprehensibility.
Mike Taylor [Wed, 26 Mar 2014 17:18:18 +0000 (17:18 +0000)]
Fix Sort and Perpage widgets by yet more that=this.
Mike Taylor [Wed, 26 Mar 2014 17:16:36 +0000 (17:16 +0000)]
Move comment.
Mike Taylor [Wed, 26 Mar 2014 17:14:32 +0000 (17:14 +0000)]
Each registerWidgetType invocation directly follows the function it
invokes. Makes each widget's source a standalone piece of text.
Mike Taylor [Wed, 26 Mar 2014 17:12:34 +0000 (17:12 +0000)]
Comment up to date.
Mike Taylor [Wed, 26 Mar 2014 17:12:05 +0000 (17:12 +0000)]
Rename all promote<TYPE> functions to promoteTo<TYPE>
Mike Taylor [Wed, 26 Mar 2014 17:11:06 +0000 (17:11 +0000)]
Rename variable.
Mike Taylor [Wed, 26 Mar 2014 17:09:17 +0000 (17:09 +0000)]
Remove extraneous duplicate line.
Mike Taylor [Wed, 26 Mar 2014 17:08:21 +0000 (17:08 +0000)]
Fix comment.
Mike Taylor [Wed, 26 Mar 2014 17:07:18 +0000 (17:07 +0000)]
Reindent.
Mike Taylor [Wed, 26 Mar 2014 17:07:01 +0000 (17:07 +0000)]
Register widget-types only once, at the end.
Mike Taylor [Wed, 26 Mar 2014 17:06:16 +0000 (17:06 +0000)]
Move that various specific-widget-type functions outside the scope of
the generic widget object. Involves a lot of tedious mucking about with
var that=this, but it's worth it because it makes each individual
widget type its own thing, ready to moved out into a separate file.
Mike Taylor [Wed, 26 Mar 2014 16:55:20 +0000 (16:55 +0000)]
Override toString method for team objects.
Mike Taylor [Wed, 26 Mar 2014 14:55:11 +0000 (14:55 +0000)]
Use registerWidgetType from MKWS code.
Look up promotion functions using API, not direct access.
Mike Taylor [Wed, 26 Mar 2014 14:51:59 +0000 (14:51 +0000)]
New API functions registerWidgetType and promotionFunction
Mike Taylor [Wed, 26 Mar 2014 14:28:54 +0000 (14:28 +0000)]
Create mkws.type2fn hash dynamically.
New function mkws.registerWidget is used to do this.
Mike Taylor [Wed, 26 Mar 2014 12:07:02 +0000 (12:07 +0000)]
Add commented-out logging to findnode.
Mike Taylor [Wed, 26 Mar 2014 12:06:43 +0000 (12:06 +0000)]
onRecord uses findnode rather than getElementById.
That means its finding of the details element is team-specific.
Mike Taylor [Wed, 26 Mar 2014 12:01:19 +0000 (12:01 +0000)]
Less vertical ws.
Mike Taylor [Wed, 26 Mar 2014 11:48:42 +0000 (11:48 +0000)]
Remove pointless immediate-execute wrapper.
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!
Mike Taylor [Wed, 26 Mar 2014 11:46:45 +0000 (11:46 +0000)]
Remove another misleading comment.
Mike Taylor [Wed, 26 Mar 2014 11:45:59 +0000 (11:45 +0000)]
Remove extraneous comments.
Mike Taylor [Wed, 26 Mar 2014 11:45:34 +0000 (11:45 +0000)]
Eliminate function onFormSubmitEventHandler, use closure instead.
Mike Taylor [Wed, 26 Mar 2014 11:43:10 +0000 (11:43 +0000)]
Reorder functions.
Mike Taylor [Wed, 26 Mar 2014 11:41:14 +0000 (11:41 +0000)]
Remove extraneous comment.
Mike Taylor [Wed, 26 Mar 2014 11:40:57 +0000 (11:40 +0000)]
Blank line
Mike Taylor [Wed, 26 Mar 2014 11:38:57 +0000 (11:38 +0000)]
log is declared as a function.
Mike Taylor [Wed, 26 Mar 2014 11:38:23 +0000 (11:38 +0000)]
More comments
Mike Taylor [Wed, 26 Mar 2014 11:37:31 +0000 (11:37 +0000)]
Comment formatting.
Mike Taylor [Wed, 26 Mar 2014 11:36:39 +0000 (11:36 +0000)]
Reorder function-list in comment.
Mike Taylor [Wed, 26 Mar 2014 11:36:00 +0000 (11:36 +0000)]
Comment typo.
Mike Taylor [Wed, 26 Mar 2014 11:28:15 +0000 (11:28 +0000)]
More comment.
Mike Taylor [Wed, 26 Mar 2014 11:27:39 +0000 (11:27 +0000)]
Comment typo.
Mike Taylor [Wed, 26 Mar 2014 11:25:15 +0000 (11:25 +0000)]
Remove misleading logging.
Mike Taylor [Wed, 26 Mar 2014 11:24:28 +0000 (11:24 +0000)]
Typo in error message.
Mike Taylor [Wed, 26 Mar 2014 11:22:38 +0000 (11:22 +0000)]
Add comment
Mike Taylor [Wed, 26 Mar 2014 11:21:39 +0000 (11:21 +0000)]
mkws.log now assigned from existing function rather than vice versa.
Mike Taylor [Wed, 26 Mar 2014 11:20:18 +0000 (11:20 +0000)]
handleNodeWithTeam is now a local function, not a member.
Mike Taylor [Wed, 26 Mar 2014 11:18:01 +0000 (11:18 +0000)]
Simplify creation of search-form by eliminating unnecessary
mkws.handleNodeWithTeam invocation.
Mike Taylor [Wed, 26 Mar 2014 11:17:21 +0000 (11:17 +0000)]
Two-team version.
Mike Taylor [Wed, 26 Mar 2014 11:11:49 +0000 (11:11 +0000)]
Resizebale.
Mike Taylor [Wed, 26 Mar 2014 11:10:31 +0000 (11:10 +0000)]
Simplify invocations of resizePage: no need for closures.
Mike Taylor [Wed, 26 Mar 2014 11:09:39 +0000 (11:09 +0000)]
resizePage() is now a local function, not a member.
Mike Taylor [Wed, 26 Mar 2014 11:05:13 +0000 (11:05 +0000)]
Remove unused "paz" member-variable from global mkws object.
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)
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)
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
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
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
Mike Taylor [Wed, 26 Mar 2014 10:32:24 +0000 (10:32 +0000)]
New
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
Mike Taylor [Wed, 26 Mar 2014 10:13:36 +0000 (10:13 +0000)]
Remove unused MKWS_JS definition.
Mike Taylor [Wed, 26 Mar 2014 10:13:19 +0000 (10:13 +0000)]
Generate mkws.js from $(COMPONENTS) (currently just mkws-core.js)
Mike Taylor [Wed, 26 Mar 2014 10:12:58 +0000 (10:12 +0000)]
Sort.
Mike Taylor [Wed, 26 Mar 2014 10:12:14 +0000 (10:12 +0000)]
Ignore generated mkws.js
Mike Taylor [Wed, 26 Mar 2014 10:11:04 +0000 (10:11 +0000)]
Move mkws.js to mkws-core.js: initially a single component
Wolfram Schneider [Wed, 26 Mar 2014 09:20:27 +0000 (09:20 +0000)]
improve distclean
Wolfram Schneider [Wed, 26 Mar 2014 09:19:56 +0000 (09:19 +0000)]
add copyright
Wolfram Schneider [Wed, 26 Mar 2014 09:19:35 +0000 (09:19 +0000)]
add help target
Wolfram Schneider [Wed, 26 Mar 2014 09:17:41 +0000 (09:17 +0000)]
add distclean
Mike Taylor [Tue, 25 Mar 2014 17:33:21 +0000 (17:33 +0000)]
Ignore generated NEWS and VERSION files.
Mike Taylor [Tue, 25 Mar 2014 17:32:36 +0000 (17:32 +0000)]
Install VERSION and NEWS files.
Mike Taylor [Tue, 25 Mar 2014 17:31:07 +0000 (17:31 +0000)]
Ignore copied file mkws-doc.css
Mike Taylor [Tue, 25 Mar 2014 17:30:38 +0000 (17:30 +0000)]
Add mkws-doc.css to list of installable files.
Mike Taylor [Tue, 25 Mar 2014 17:29:25 +0000 (17:29 +0000)]
Ignore generated documentation files README.html and whitepaper.html
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
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.
Mike Taylor [Tue, 25 Mar 2014 17:26:50 +0000 (17:26 +0000)]
More generated files (.pdf, .odt) to ignore.
Mike Taylor [Tue, 25 Mar 2014 17:26:18 +0000 (17:26 +0000)]
New doc/.gitignore, omits generated HTML files.
Mike Taylor [Tue, 25 Mar 2014 17:25:41 +0000 (17:25 +0000)]
Add rules to install compiled markdown->html files.
Mike Taylor [Tue, 25 Mar 2014 17:20:05 +0000 (17:20 +0000)]
Add mkws-jquery.js to installable list.
Mike Taylor [Tue, 25 Mar 2014 17:19:03 +0000 (17:19 +0000)]
Add mkws.js itself to the installable list.
Mike Taylor [Tue, 25 Mar 2014 17:16:51 +0000 (17:16 +0000)]
New tools/htdocs/.gitignore
Ignore files generated and installed from ../../src
Mike Taylor [Tue, 25 Mar 2014 17:15:48 +0000 (17:15 +0000)]
Add new "install" and "uninstall" rules.
Mike Taylor [Tue, 25 Mar 2014 17:12:11 +0000 (17:12 +0000)]
Update "help" target
Mike Taylor [Tue, 25 Mar 2014 17:11:55 +0000 (17:11 +0000)]
Remove extraneous comment.
Mike Taylor [Tue, 25 Mar 2014 17:11:41 +0000 (17:11 +0000)]
Remove mkws-js-min rule, this is now the default "all".
Mike Taylor [Tue, 25 Mar 2014 17:10:57 +0000 (17:10 +0000)]
Remove redundant target
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.
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
Mike Taylor [Tue, 25 Mar 2014 16:18:03 +0000 (16:18 +0000)]
Move tools/htdocs/.gitignore to ../../src
Mike Taylor [Tue, 25 Mar 2014 16:16:47 +0000 (16:16 +0000)]
Generated mkws-complete.js now includes mkws-jquery.js
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