Small fixes to settings and forms

pull/223/head
Ruben Daniels 2015-10-20 18:53:03 +00:00
rodzic ac33a79549
commit b61039216c
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -391,13 +391,14 @@ define(function(require, exports, module) {
}
if (hash[key] === value)
return;
var oldValue = hash[key];
hash[key] = value;
// Tell everyone this property changed
emit(parts.join("/"), value);
emit(parts.join("/"), value, oldValue);
// Tell everyone it's parent changed
emit(query, value);
emit(query, value, oldValue);
// Tell everyone the root type changed (user, project, state)
scheduleAnnounce(parts[0], userData);

Wyświetl plik

@ -421,8 +421,8 @@ define(function(require, exports, module) {
});
}
if (options.name) {
node.setAttribute("id", options.name);
if (options.id || options.name) {
node.setAttribute("id", options.id || options.name);
elements[node.name] = node;
}