kopia lustrzana https://github.com/c9/core
Small fixes to settings and forms
rodzic
ac33a79549
commit
b61039216c
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue