mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
@@ -250,6 +250,7 @@ loot-editor-close
|
||||
observe: {
|
||||
'data.isGlobalPriority': 'onPriorityChange',
|
||||
'data.modPriority': 'onPriorityChange',
|
||||
'data.userlist': 'onDataCacheChange',
|
||||
},
|
||||
|
||||
attached: function() {
|
||||
@@ -294,6 +295,13 @@ loot-editor-close
|
||||
}
|
||||
},
|
||||
|
||||
onDataCacheChange: function(oldValue, newValue) {
|
||||
if (this.data) {
|
||||
/* Set the new editor data. */
|
||||
this.setEditorData(this.data);
|
||||
}
|
||||
},
|
||||
|
||||
readFromEditor: function(oldData) {
|
||||
/* Need to turn all the editor controls' values into data to
|
||||
process. The control values can be compared with the existing
|
||||
|
||||
@@ -228,6 +228,7 @@ function onClearAllMetadata(evt) {
|
||||
for (var i = 0; i < loot.game.plugins.length; ++i) {
|
||||
if (loot.game.plugins[i].name == plugin.name) {
|
||||
loot.game.plugins[i].userlist = undefined;
|
||||
loot.game.plugins[i].editor = undefined;
|
||||
|
||||
loot.game.plugins[i].modPriority = plugin.modPriority;
|
||||
loot.game.plugins[i].isGlobalPriority = plugin.isGlobalPriority;
|
||||
@@ -526,6 +527,7 @@ function onClearMetadata(evt) {
|
||||
for (var i = 0; i < loot.game.plugins.length; ++i) {
|
||||
if (loot.game.plugins[i].id == evt.target.id) {
|
||||
loot.game.plugins[i].userlist = undefined;
|
||||
loot.game.plugins[i].editor = undefined;
|
||||
|
||||
loot.game.plugins[i].modPriority = result.modPriority;
|
||||
loot.game.plugins[i].isGlobalPriority = result.isGlobalPriority;
|
||||
|
||||
Reference in New Issue
Block a user