Fix unnecessary global calling of ownerui

This commit is contained in:
Wu Cheng-Han 2017-03-22 15:42:11 +08:00
parent e751684aa3
commit 9ff3649025

View file

@ -67,7 +67,7 @@ window.owner = null
window.ownerprofile = null
export function updateOwner () {
if (window.ownerui) {
if (ownerui) {
if (window.owner && window.ownerprofile && window.owner !== window.lastchangeuser) {
const icon = ownerui.children('i')
icon.attr('title', window.ownerprofile.name).tooltip('fixTitle')