// Functions follow for promoting the regular widget object into
-// widgets of specific types. These could be moved outside of the
-// widget object, or even into their own source files.
+// widgets of specific types. These could be moved into their own
+// source files.
+
function promoteToTargets() {
var that = this;
subnode.html(table);
});
}
+mkws.registerWidgetType('Targets', promoteToTargets);
function promoteToStat() {
'<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
});
}
+mkws.registerWidgetType('Stat', promoteToStat);
function promoteToTermlists() {
}
});
}
+mkws.registerWidgetType('Termlists', promoteToTermlists);
function promoteToPager() {
}
});
}
+mkws.registerWidgetType('Pager', promoteToPager);
function promoteToRecords() {
}
});
}
+mkws.registerWidgetType('Records', promoteToRecords);
function promoteToNavi() {
$(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() {
- // It seems this and the Perpage widget doen't need to
- // subscribe to anything, since they produce events rather
- // than consuming them.
$(this.node).change(function () {
this.team.set_sortOrder($(node).val());
if (this.team.submitted()) {
return false;
});
}
+mkws.registerWidgetType('Sort', promoteToSort);
function promoteToPerpage() {
return false;
});
}
-
-mkws.registerWidgetType('Targets', promoteToTargets);
-mkws.registerWidgetType('Stat', promoteToStat);
-mkws.registerWidgetType('Termlists', promoteToTermlists);
-mkws.registerWidgetType('Pager', promoteToPager);
-mkws.registerWidgetType('Records', promoteToRecords);
-mkws.registerWidgetType('Navi', promoteToNavi);
-mkws.registerWidgetType('Sort', promoteToSort);
mkws.registerWidgetType('Perpage', promoteToPerpage);
-
-