(other)
| 594 | } |
| 595 | |
| 596 | function jsError(other) { |
| 597 | try { |
| 598 | other(); |
| 599 | } catch (err) { |
| 600 | getStatic("/templates/json-error-template.html", function(template) { |
| 601 | $("#json-response-error").append(Mustache.render($(template).filter("#json-error-template").html(),{error: "JS Error", errorMessage: err})); |
| 602 | }); |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | function getResourceGuaranteeRemainingFormat(type, data) { |
| 607 | if (type === 'display' && typeof data === "number") { |
no test coverage detected