// source files.
-function promoteToTargets() {
+mkws.registerWidgetType('Targets', function() {
var that = this;
var M = mkws.M;
var subnode = $(that.node).children('.mkwsBytarget');
subnode.html(table);
});
-}
-mkws.registerWidgetType('Targets', promoteToTargets);
+});
-function promoteToStat() {
+mkws.registerWidgetType('Stat', function() {
var that = this;
var M = mkws.M;
' -- ' +
'<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
});
-}
-mkws.registerWidgetType('Stat', promoteToStat);
+});
-function promoteToTermlists() {
+mkws.registerWidgetType('Termlists', function() {
var that = this;
var M = mkws.M;
acc.push('</div>');
}
});
-}
-mkws.registerWidgetType('Termlists', promoteToTermlists);
+});
-function promoteToPager() {
+mkws.registerWidgetType('Pager', function() {
var that = this;
var M = mkws.M;
return s;
}
});
-}
-mkws.registerWidgetType('Pager', promoteToPager);
+});
-function promoteToRecords() {
+mkws.registerWidgetType('Records', function() {
var that = this;
var team = this.team;
return template(hit);
}
});
-}
-mkws.registerWidgetType('Records', promoteToRecords);
+});
-function promoteToNavi() {
+mkws.registerWidgetType('Navi', function() {
var that = this;
var teamName = this.team.name();
var M = mkws.M;
$(that.node).html(text);
});
-}
-mkws.registerWidgetType('Navi', promoteToNavi);
+});
// It seems this and the Perpage widget doen't need to subscribe to
// anything, since they produce events rather than consuming them.
//
-function promoteToSort() {
+mkws.registerWidgetType('Sort', function() {
var that = this;
$(this.node).change(function () {
}
return false;
});
-}
-mkws.registerWidgetType('Sort', promoteToSort);
+});
mkws.registerWidgetType('Perpage', function() {