fix input field value access
This commit is contained in:
parent
6fdcbfb1b7
commit
3e309e0850
@ -1,10 +1,10 @@
|
||||
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)
|
||||
|
@ -103,6 +103,10 @@ define(function() {
|
||||
"innerHTML": {
|
||||
get: function() { return node.innerHTML; },
|
||||
set: function(innerHTML) { node.innerHTML = innerHTML; }
|
||||
},
|
||||
"value": {
|
||||
get: function() { return node.value; },
|
||||
set: function(value) { node.value = value; }
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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
|
||||
if (config["require-email"])
|
||||
{
|
||||
if (config["require-email"]) {
|
||||
$("[name='email']", el).placeholder =
|
||||
$("[name='email']", el).placeholder.replace(/ \(.*\)/, "");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user