ソースを参照

another fix for #934

tags/v0.3.1
Big Bad Waffle 5年前
コミット
eacc84facd
1個のファイルの変更11行の追加2行の削除
  1. +11
    -2
      src/client/ui/templates/smithing/smithing.js

+ 11
- 2
src/client/ui/templates/smithing/smithing.js ファイルの表示

@@ -21,10 +21,13 @@ define([
modal: true,

eventCloseInv: null,
eventClickInv: null,

hoverItem: null,
item: null,

waiting: false,

action: 'augment',

postRender: function () {
@@ -115,17 +118,20 @@ define([
},

openInventory: function () {
this.waiting = true;

this.eventCloseInv = this.onEvent('onHideInventory', this.onHideInventory.bind(this));
this.eventClickInv = this.onEvent('beforeInventoryClickItem', this.onHideInventory.bind(this));

events.emit('onShowInventory');
this.el.hide();
},

onHideInventory: function (msg) {
if (msg)
if (msg)
msg.success = false;

this.waiting = false;

if ((!msg) || (!msg.item)) {
this.offEvent(this.eventCloseInv);
this.offEvent(this.eventClickInv);
@@ -311,6 +317,9 @@ define([
},

beforeHide: function () {
if (this.waiting)
return;

this.item = null;
this.offEvent(this.eventCloseInv);
this.offEvent(this.eventClickInv);


読み込み中…
キャンセル
保存