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
e04b87d
..
a20e270
100644
(file)
--- a/
src/mkws-widget-main.js
+++ b/
src/mkws-widget-main.js
@@
-25,10
+25,12
@@
mkws.registerWidgetType('targets', function() {
cur.diagnostic = data[i].diagnostic;
cur.message = data[i].message;
cur.records = data[i].records;
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}));
});