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
compare only the first 3 elements in records details (title, date, author)
[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
09565ac
..
a20e270
100644
(file)
--- a/
src/mkws-widget-main.js
+++ b/
src/mkws-widget-main.js
@@
-19,15
+19,18
@@
mkws.registerWidgetType('targets', function() {
var cleandata = [];
for (var i = 0; i < data.length; i++) {
var cur = {};
var cleandata = [];
for (var i = 0; i < data.length; i++) {
var cur = {};
- cur.id = that.team.targetName(data[i].id);
+ cur.name = data[i].name;
+ cur.id = data[i].id;
cur.hits = data[i].hits;
cur.diagnostic = data[i].diagnostic;
cur.message = data[i].message;
cur.records = data[i].records;
cur.hits = data[i].hits;
cur.diagnostic = data[i].diagnostic;
cur.message = data[i].message;
cur.records = data[i].records;
- cur.state = data[i].state;
+ cur.state = data[i].state.replace(/^Client_/, '');
cleandata.push(cur);
}
cleandata.push(cur);
}
+ cleandata.sort(function(a,b) { return a.name.localeCompare(b.name) });
+
var template = that.team.loadTemplate(that.config.template || "targets");
that.node.html(template({data: cleandata}));
});
var template = that.team.loadTemplate(that.config.template || "targets");
that.node.html(template({data: cleandata}));
});