fix input field value access

This commit is contained in:
Martin Zimmermann 2016-02-06 19:59:45 +01:00
parent 6fdcbfb1b7
commit 3e309e0850
3 changed files with 7 additions and 4 deletions

View File

@ -1,10 +1,10 @@
Changelog for Isso Changelog for Isso
================== ==================
0.11 (unreleased) 0.10.1 (unreleased)
----------------- -----------------
- Nothing changed yet. - fix empty author, email and website values when writing a comment
0.10 (2016-02-06) 0.10 (2016-02-06)

View File

@ -103,6 +103,10 @@ define(function() {
"innerHTML": { "innerHTML": {
get: function() { return node.innerHTML; }, get: function() { return node.innerHTML; },
set: function(innerHTML) { node.innerHTML = innerHTML; } set: function(innerHTML) { node.innerHTML = innerHTML; }
},
"value": {
get: function() { return node.value; },
set: function(value) { node.value = value; }
} }
}); });
} }

View File

@ -34,8 +34,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
}; };
// email is not optional if this config parameter is set // email is not optional if this config parameter is set
if (config["require-email"]) if (config["require-email"]) {
{
$("[name='email']", el).placeholder = $("[name='email']", el).placeholder =
$("[name='email']", el).placeholder.replace(/ \(.*\)/, ""); $("[name='email']", el).placeholder.replace(/ \(.*\)/, "");
} }