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
Generate mkwsClientCount class instead of "clients".
[mkws-moved-to-github.git]
/
src
/
mkws-widget-main.js
diff --git
a/src/mkws-widget-main.js
b/src/mkws-widget-main.js
index
6fbf5de
..
51bd5c1
100644
(file)
--- 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;
var that = this;
var M = mkws.M;
- $(this.node).html('\
-<div class="mkwsBytarget mkwsTeam_' + this.team.name() + '">\
-No information available yet.\
-</div>');
+ $(this.node).html('No information available yet.');
$(this.node).css("display", "none");
this.team.queue("targets").subscribe(function(data) {
$(this.node).css("display", "none");
this.team.queue("targets").subscribe(function(data) {
@@
-31,8
+28,7
@@
No information available yet.\
}
table += '</tbody></table>';
}
table += '</tbody></table>';
- var subnode = $(that.node).children('.mkwsBytarget');
- subnode.html(table);
+ $(that.node).html(table);
});
});
});
});
@@
-46,7
+42,7
@@
mkws.registerWidgetType('Stat', function() {
$(that.node).html('<span class="head">' + M('Status info') + '</span>' +
' -- ' +
$(that.node).html('<span class="head">' + M('Status info') + '</span>' +
' -- ' +
- '<span class="clients">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
+ '<span class="mkwsClientCount">' + M('Active clients') + ': ' + data.activeclients + '/' + data.clients + '</span>' +
' -- ' +
'<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
});
' -- ' +
'<span class="records">' + M('Retrieved records') + ': ' + data.records + '/' + data.hits + '</span>');
});
@@
-89,7
+85,7
@@
mkws.registerWidgetType('Pager', function() {
for(var i = firstClkbl; i <= lastClkbl; i++) {
var numLabel = i;
if(i == currentPage)
for(var i = firstClkbl; i <= lastClkbl; i++) {
var numLabel = i;
if(i == currentPage)
- numLabel = '<span class="mkwsSelected">' + i + '</span>';
+ numLabel = '<span class="mkwsCurrentPage">' + i + '</span>';
middle += '<a href="#" onclick="mkws.showPage(\'' + teamName + '\', ' + i + ')"> '
+ numLabel + ' </a>';
middle += '<a href="#" onclick="mkws.showPage(\'' + teamName + '\', ' + i + ')"> '
+ numLabel + ' </a>';
@@
-161,13
+157,13
@@
mkws.registerWidgetType('Navi', function() {
filters.visitTargets(function(id, name) {
if (text) text += " | ";
filters.visitTargets(function(id, name) {
if (text) text += " | ";
- text += M('source') + ': <a class="crossout" href="#" onclick="mkws.delimitTarget(\'' + teamName +
+ text += M('source') + ': <a class="mkwsRemovable" href="#" onclick="mkws.delimitTarget(\'' + teamName +
"', '" + id + "'" + ');return false;">' + name + '</a>';
});
filters.visitFields(function(field, value) {
if (text) text += " | ";
"', '" + id + "'" + ');return false;">' + name + '</a>';
});
filters.visitFields(function(field, value) {
if (text) text += " | ";
- text += M(field) + ': <a class="crossout" href="#" onclick="mkws.delimitQuery(\'' + teamName +
+ text += M(field) + ': <a class="mkwsRemovable" href="#" onclick="mkws.delimitQuery(\'' + teamName +
"', '" + field + "', '" + value + "'" +
');return false;">' + value + '</a>';
});
"', '" + field + "', '" + value + "'" +
');return false;">' + value + '</a>';
});
@@
-238,7
+234,7
@@
mkws.registerWidgetType('Search', function() {
mkws.registerWidgetType('SearchForm', 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);
$(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 that = this;
var M = mkws.M;
- var s = '<form name="mkwsSelect" class="mkwsSelect mkwsTeam_' + tname + '" action="" >';
+ var s = '<form>';
if (this.config.show_sort) {
s += M('Sort by') + ' ' + mkwsHtmlSort() + ' ';
}
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() {});
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
+