Fix review changes locking
This commit is contained in:
parent
a6b5989099
commit
0c20f3b91e
|
@ -418,7 +418,7 @@ define([
|
||||||
changetext : changetext,
|
changetext : changetext,
|
||||||
id : Common.UI.getId(),
|
id : Common.UI.getId(),
|
||||||
lock : (item.get_LockUserId()!==null),
|
lock : (item.get_LockUserId()!==null),
|
||||||
lockuser : item.get_LockUserId(),
|
lockuser : me.getUserName(item.get_LockUserId()),
|
||||||
type : item.get_Type(),
|
type : item.get_Type(),
|
||||||
changedata : item,
|
changedata : item,
|
||||||
scope : me.view,
|
scope : me.view,
|
||||||
|
|
|
@ -14,4 +14,8 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (lock) { %>
|
||||||
|
<div class="lock-area" style="cursor: default;"></div>
|
||||||
|
<div class="lock-author" style="cursor: default;"><%=lockuser%></div>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
|
@ -480,9 +480,7 @@ define([
|
||||||
handleSelect: false,
|
handleSelect: false,
|
||||||
scrollable: true,
|
scrollable: true,
|
||||||
template: _.template('<div class="dataview-ct inner" style="overflow-y: visible;">'+
|
template: _.template('<div class="dataview-ct inner" style="overflow-y: visible;">'+
|
||||||
'</div>' +
|
'</div>'
|
||||||
'<div class="lock-area" style="cursor: default;"></div>' +
|
|
||||||
'<div class="lock-author" style="cursor: default;"></div>'
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -544,8 +542,8 @@ define([
|
||||||
|
|
||||||
showReview: function (animate, lock, lockuser) {
|
showReview: function (animate, lock, lockuser) {
|
||||||
this.show(animate);
|
this.show(animate);
|
||||||
this.reviewChangesView.cmpEl.find('.lock-area').toggleClass('hidden', !lock);
|
// this.reviewChangesView.cmpEl.find('.lock-area').toggleClass('hidden', !lock);
|
||||||
this.reviewChangesView.cmpEl.find('.lock-author').toggleClass('hidden', !lock || _.isEmpty(lockuser)).text(lockuser);
|
// this.reviewChangesView.cmpEl.find('.lock-author').toggleClass('hidden', !lock || _.isEmpty(lockuser)).text(lockuser);
|
||||||
this._state.reviewVisible = true;
|
this._state.reviewVisible = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue