Update stats as proper signal, only return values from backend

This commit is contained in:
Thomas Perl 2014-02-10 21:13:49 +01:00
parent 0ff355737c
commit ccd4a4dc17
4 changed files with 26 additions and 13 deletions

View file

@ -69,3 +69,9 @@ function disableUntilReturn(item, py, func, args) {
item.enabled = true;
});
}
function format(s, d) {
return s.replace(/{([^}]*)}/g, function (m, k) {
return (k in d) ? d[k] : m;
});
}