if (from) {
log("changing from " + from + " to " + to + ": " + width);
- $(".mkwsTermlist-Container-" + from).hide();
- $(".mkwsTermlist-Container-" + to).show();
for (var tname in mkws.teams) {
var team = mkws.teams[tname];
+ team.visitWidgets(function (t, w) {
+ var w1 = team.widget(t + "-Container-" + from);
+ var w2 = team.widget(t + "-Container-" + to);
+ if (w1) $(w1.node).hide();
+ if (w2) $(w2.node).show();
+ });
team.queue("resize" + to).publish();
$(".mkwsTermlists.mkwsTeam_" + tname).appendTo($(".mkwsTermlist-Container-" + to + ".mkwsTeam_" + tname));
for(var i = 0; i < list.length; i++) {
myTeam.addWidget(myWidget);
var newHTML = this.innerHTML;
if (newHTML !== oldHTML) {
- log("widget " + tname + ":" + type + " HTML changed from '" + oldHTML + "' to '" + newHTML + "': reparse!");
+ log("widget " + tname + ":" + type + " HTML changed: reparsing");
makeWidgetsWithin(level+1, $(this));
}
});