summaryrefslogtreecommitdiff
path: root/www/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/api.js')
-rw-r--r--www/js/api.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 3a2c4f5..4454521 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -219,10 +219,6 @@ window.html5ks.api = {
}
el.style.display = "block";
}
- deferred.resolve();
- };
- el.onerror = function () {
- deferred.reject();
};
var nom = name;
if (type && type !== "None") {
@@ -339,7 +335,7 @@ window.html5ks.api = {
if (!extend && char.what_prefix) {
text = char.what_prefix + text;
}
- if ((!w || !w[1] || extend) && char.what_suffix) {
+ if ((!w || !w[1]) && !extend && char.what_suffix) {
text = text + char.what_suffix;
}