projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Radically simplify and generalise generation of facet HTML.
[mkws-moved-to-github.git]
/
src
/
mkws-widget-builder.js
diff --git
a/src/mkws-widget-builder.js
b/src/mkws-widget-builder.js
index
e90e0ad
..
60ee37b
100644
(file)
--- a/
src/mkws-widget-builder.js
+++ b/
src/mkws-widget-builder.js
@@
-2,11
+2,11
@@
mkws.registerWidgetType('Builder', function() {
var that = this;
var team = this.team;
var that = this;
var team = this.team;
- this.button = $('<button/>', {
+ this.button = mkws.$('<button/>', {
type: 'button',
text: this.config.text || "Build!"
});
type: 'button',
text: this.config.text || "Build!"
});
- $(this.node).append(this.button);
+ this.node.append(this.button);
this.button.click(function() {
var query = team.widget('Query').value();
var sort = team.widget('Sort').value();
this.button.click(function() {
var query = team.widget('Query').value();
var sort = team.widget('Sort').value();
@@
-22,8
+22,8
@@
mkws.registerWidgetType('Builder', function() {
});
mkws.registerWidgetType('ConsoleBuilder', function() {
});
mkws.registerWidgetType('ConsoleBuilder', function() {
- mkws.promotionFunction('Builder').call(this);
+ mkws.promotionFunction('Builder').call(this);
this.callback = function(s) {
this.callback = function(s) {
- console.log("Generated widget: " + s);
+ console.log("generated widget: " + s);
}
});
}
});