X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=980cde20b430d25ff66eea09c9df1dde52e060cc;hb=8f5f3f601c14fe4d0af684edc1ad0b2989e9d39e;hp=6fbf5de1b2a544703d21b28651b1453c8c36c37f;hpb=cef14d4f276c60f0b7bfd7f11736d619945c9706;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 6fbf5de..980cde2 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -7,10 +7,7 @@ mkws.registerWidgetType('Targets', function() { var that = this; var M = mkws.M; - $(this.node).html('\ -
\ -No information available yet.\ -
'); + $(this.node).html('No information available yet.'); $(this.node).css("display", "none"); this.team.queue("targets").subscribe(function(data) { @@ -31,8 +28,7 @@ No information available yet.\ } table += ''; - var subnode = $(that.node).children('.mkwsBytarget'); - subnode.html(table); + $(that.node).html(table); }); }); @@ -89,7 +85,7 @@ mkws.registerWidgetType('Pager', function() { for(var i = firstClkbl; i <= lastClkbl; i++) { var numLabel = i; if(i == currentPage) - numLabel = '' + i + ''; + numLabel = '' + i + ''; middle += ' ' + numLabel + ' '; @@ -238,7 +234,7 @@ mkws.registerWidgetType('Search', function() { mkws.registerWidgetType('SearchForm', function() { - var team = this.team; + var team = this.team; $(this.node).submit(function() { var val = team.widget('Query').value(); team.newSearch(val); @@ -279,7 +275,7 @@ mkws.registerWidgetType('Ranking', function() { var that = this; var M = mkws.M; - var s = '
'; + var s = ''; if (this.config.show_sort) { s += M('Sort by') + ' ' + mkwsHtmlSort() + ' '; } @@ -420,8 +416,4 @@ mkws.registerWidgetType('MOTDContainer', function() {}); mkws.registerWidgetType('Button', function() {}); mkws.registerWidgetType('Popup', function() {}); -// Not sure whether the following should have functionality: -// Select HTMLFormElement -// *-Container-wide HTMLTableCellElement -// *-Container-narrow HTMLDivElement -// Bytarget HTMLDivElement +