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