[refactor] improve link add page lock order

This commit is contained in:
zombieFox 2019-11-21 09:46:28 +00:00
parent 560298322a
commit 00c4269a39

View File

@ -1361,8 +1361,8 @@ var link = (function() {
pagelock.unlock(); pagelock.unlock();
} }
}); });
stagedLink.position.destination.item = helper.e(".link-form-position").selectedIndex;
pagelock.lock(); pagelock.lock();
stagedLink.position.destination.item = helper.e(".link-form-position").selectedIndex;
}, },
close: function() { close: function() {
mod.add.item.close(); mod.add.item.close();
@ -1409,8 +1409,8 @@ var link = (function() {
pagelock.unlock(); pagelock.unlock();
} }
}); });
stagedGroup.position.destination = helper.e(".group-form-position").selectedIndex;
pagelock.lock(); pagelock.lock();
stagedGroup.position.destination = helper.e(".group-form-position").selectedIndex;
}, },
close: function() { close: function() {
mod.add.group.close(); mod.add.group.close();