@italentjs/italent-header
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -9,31 +9,31 @@ /* | ||
var jst = (function() { | ||
this["JST"] = this["JST"] || {}; | ||
this["JST"]["header/company-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<div class="company-icon">\n\t<!-- <a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" src="' +((__t = (logo)) == null ? '' : __t) +'"></a> -->\n\t<a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" alt="logo"></a>\n\t<span class="company-name">' +((__t = ( name)) == null ? '' : __t) +'</span>\n</div>';}return __p}; | ||
this["JST"]["header/header"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += ' \n <div class="header-out-wrapper">\n <div class="header-left company-info-region clearfix"></div>\n <div class="header-right clearfix">\n <div class="lang-region"></div>\n <!--用户信息-->\n <div class="header-webim-region"></div>\n <div class="user-info-region"></div>\n <ul class=\'btns-group\'></ul>\n \n </div>\n </div>\n';}return __p}; | ||
this["JST"]["header/icon-view/home-page"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += 'target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n<div class="list-wrapper"></div>\n';}return __p}; | ||
this["JST"]["header/icon-view/lang"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class=\'lang-region-box\'>\n <span class="' +((__t = ( I18NUserLang )) == null ? '' : __t) +'"> </span>\n <div class="btn-tips">\n <div class="entry-trangle-top"></div>\n 语言\n </div>\n</a>\n<div class="dp-down-list ">\n\t\t<ul class="list-ul-box dp-list-front">\n '; Talent._.each(list,function(item,index){ ;__p += '\n <li class="dp-list-item"><a href="javascript:;"data-text="' +((__t = ( item )) == null ? '' : __t) +'" data-value="' +((__t = ( item.value )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n '; }) ;__p += '\n\t\t</ul>\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(list,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>\n\n';}return __p}; | ||
this["JST"]["header/icon-view/message"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a>\n\n'; if(reminds.remindList.length){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">\n\t\t\t\t' +((__t = ( "新通知(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t\t</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="_blank" class="message-item-a">\n\t\t\t\t\t\t\t<span class="icon-box ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">\n\t\t\t\t\t\t\t\t' +((__t = (item.content)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="num">\n\t\t\t\t\t\t\t\t' +((__t = (item.length)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="date">\n\t\t\t\t\t\t\t\t' +((__t = (item.date)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = (reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t</li>\n\t\t</div>\n\t</div>\n\t'; } ;}return __p}; | ||
this["JST"]["header/icon-view/search"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message">' +((__t = ( reminds.remindCount )) == null ? '' : __t) +'</span> '; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +__e(searchTip) +'\n\t</div>\n</a>\n<div class="list-wrapper">\n\t<div class="form-input form-input-active">\n\t\t<form action="" data-name="search-form">\n\t\t\t<input placeholder="' +((__t = ( title)) == null ? '' : __t) +'" />\n\t\t</form>\n\t</div>\n\t<div class="comfirm-btn"></div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/settings"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" ';if(href){;__p += ' href="' +((__t = (href)) == null ? '' : __t) +'" ';};__p += ' ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n';if(reminds.remindList && reminds.remindList.length){;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" ';if(item.target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += ' class="message-item-a">\n\t\t\t\t\t\t\t<span class="settings-icon ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">' +((__t = (item.content)) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t</div>\n\t</div>\n';};__p += '\n\n';}return __p}; | ||
this["JST"]["header/icon-view/skin"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\t<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n\t \t'; } ;__p += '\n\t \t<div class="btn-tips">\n\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t</div>\n\t</a>\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="color-title">拖动滑块选择颜色</div>\n\t\t\t<input type="range" class="color-range">\n\t\t\t<div class="selector-btn clearfix">\n\t\t\t\t<div class="check-default check-back">\n\t\t\t\t\t<div class="check-box ">\n\t\t\t\t\t\t<span class="un-check"></span>\n\t\t\t\t\t\t<span class="in-check"></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<label class="text">恢复默认</label>\n\t\t\t\t</div>\n\n\t\t\t\t<span class="comfirm-btn-style comfirm-btn">确定</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/todos-item/todos-item"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t<li class="message-item">\n\t\t\t<a href="' +((__t = ( item.href )) == null ? '' : __t) +'" target="_blank" class="clearfix message-item-a">\n\t\t\t\t'; if(item.avatar.hasAvatar){ ;__p += '\n\t\t\t\t\t<div class="user-pic"><img src="' +((__t = ( item.avatar.medium)) == null ? '' : __t) +'"></div>\n\t\t\t\t'; }else{ ;__p += '\n\t\t\t\t\t<div class="user-pic" style="background-color: ' +((__t = ( item.avatar.color)) == null ? '' : __t) +'">' +((__t = ( item.userName.substr(0,1) || "Name")) == null ? '' : __t) +'</div>\n\t\t\t\t';};__p += '\n\t\t\t\t<div class="item-detail">\n\t\t\t\t\t<div class="detail-head clearfix">\n\t\t\t\t\t\t<span class="user-name">' +((__t = ( item.userName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="user-opr">' +((__t = ( item.teskName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="date">' +((__t = ( item.date )) == null ? '' : __t) +'</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="detail-content">' +((__t = ( item.taskContent )) == null ? '' : __t) +'</div>\n\t\t\t\t</div>\n\t\t\t</a>\n\t\t</li>\n\t'; }) ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">' +((__t = ( "我的待办(" + reminds.remindCount + ")")) == null ? '' : __t) +'</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t<div class="spinner">\n\t\t\t\t\t<div class="rect1"></div>\n\t\t\t\t\t<div class="rect2"></div>\n\t\t\t\t\t<div class="rect3"></div>\n\t\t\t\t\t<div class="rect4"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="text-loading">加载中...</div>\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t\t<a href="javascript:void(0)" class="view-ignore-all" data-name="head-ignore-all">\n\t\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t\t点击后仅将招聘和工作计划的待办全部转移到已处理中\t\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span>忽略全部</span>\n\t\t\t\t</a>\n\t\t\t\t';};__p += '\n\t\t\t</li>\n\t\t</div>\n\t</div>\n'; } ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/upgrade"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" target="_blank" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t<!-- '; if(reminds.remindCount){ ;__p += ' -->\n\t\t\t<!-- TODO:new图标 -->\n\t\t\t<span class="new-icon">\n\n\t\t\t</span>\n\t\t\t<!-- '; } ;__p += ' -->\n\t\t\t<div class="btn-tips">\n\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t</div>\n</a>\n<div class="list-wrapper">\n</div>\n\n<!-- <a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a> -->';}return __p}; | ||
this["JST"]["header/user-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t<div class="user-info">\n\t\t'; if(userInfo.avatar.hasAvatar){ ;__p += '\n\t\t\t<span class="user-photo"><img src="' +((__t = (userInfo.avatar.small)) == null ? '' : __t) +'"></span>\n\t\t'; }else{ ;__p += '\n\t\t\t<span class="name-pic" style="background-color: ' +((__t = (userInfo.avatar.color)) == null ? '' : __t) +'">' +((__t = ( userInfo.name.substr(0,1) || "Name")) == null ? '' : __t) +'</span>\n\t\t';};__p += '\n\t\t\t<span class="user-name">' +((__t = (userInfo.name)) == null ? '' : __t) +'</span>\n\t</div>\n\n\t<div class="dp-down-list">\n\t\t<ul class="list-ul-box dp-list-front">\n\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t<li class="dp-list-item"><a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="' +((__t = ( item.target )) == null ? '' : __t) +'" data-name="' +((__t = ( item.type )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t'; }) ;__p += '\n\t\t\t<!-- <li class="item-high-light"></li> -->\n\t\t</ul>\n\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>';}return __p}; | ||
this["JST"]["header/webim"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<span class="header-icon-titaim ico-webim disabled"></span>\n<b class="u-unread new-message hide">0<b>\n';}return __p}; | ||
return this["JST"] | ||
})() | ||
this["JST"] = this["JST"] || {}; | ||
this["JST"]["header/company-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<div class="company-icon">\n\t<!-- <a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" src="' +((__t = (logo)) == null ? '' : __t) +'"></a> -->\n\t<a href="' +((__t = ( href)) == null ? '' : __t) +'"><img class="cmpy-logo" alt="logo"></a>\n\t<span class="company-name">' +((__t = ( name)) == null ? '' : __t) +'</span>\n</div>';}return __p}; | ||
this["JST"]["header/header"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += ' \n <div class="header-out-wrapper">\n <div class="header-left company-info-region clearfix"></div>\n <div class="header-right clearfix">\n <div class="lang-region"></div>\n <!--用户信息-->\n <div class="header-webim-region"></div>\n <div class="user-info-region"></div>\n <ul class=\'btns-group\'></ul>\n \n </div>\n </div>\n';}return __p}; | ||
this["JST"]["header/icon-view/home-page"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += 'target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n<div class="list-wrapper"></div>\n';}return __p}; | ||
this["JST"]["header/icon-view/lang"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class=\'lang-region-box\'>\n <span class="' +((__t = ( I18NUserLang )) == null ? '' : __t) +'"> </span>\n <div class="btn-tips">\n <div class="entry-trangle-top"></div>\n 语言\n </div>\n</a>\n<div class="dp-down-list ">\n\t\t<ul class="list-ul-box dp-list-front">\n '; Talent._.each(list,function(item,index){ ;__p += '\n <li class="dp-list-item"><a href="javascript:;"data-text="' +((__t = ( item )) == null ? '' : __t) +'" data-value="' +((__t = ( item.value )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n '; }) ;__p += '\n\t\t</ul>\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(list,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.text )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>\n\n';}return __p}; | ||
this["JST"]["header/icon-view/message"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a>\n\n'; if(reminds.remindList.length){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">\n\t\t\t\t' +((__t = ( "新通知(" + reminds.remindCount + ")")) == null ? '' : __t) +'\n\t\t\t</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="_blank" class="message-item-a">\n\t\t\t\t\t\t\t<span class="icon-box ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">\n\t\t\t\t\t\t\t\t' +((__t = (item.content)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="num">\n\t\t\t\t\t\t\t\t' +((__t = (item.length)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class="date">\n\t\t\t\t\t\t\t\t' +((__t = (item.date)) == null ? '' : __t) +'\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = (reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t</li>\n\t\t</div>\n\t</div>\n\t'; } ;}return __p}; | ||
this["JST"]["header/icon-view/search"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += '\n\ttarget="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '> '; if(reminds.remindCount){ ;__p += '\n\t<span class="new-message">' +((__t = ( reminds.remindCount )) == null ? '' : __t) +'</span> '; } ;__p += '\n\t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +__e(searchTip) +'\n\t</div>\n</a>\n<div class="list-wrapper">\n\t<div class="form-input form-input-active">\n\t\t<form action="" data-name="search-form">\n\t\t\t<input placeholder="' +((__t = ( title)) == null ? '' : __t) +'" />\n\t\t</form>\n\t</div>\n\t<div class="comfirm-btn"></div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/settings"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" ';if(href){;__p += ' href="' +((__t = (href)) == null ? '' : __t) +'" ';};__p += ' ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n';if(reminds.remindList && reminds.remindList.length){;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<ul class="message-list">\n\t\t\t\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t\t\t\t<li class="message-item">\n\t\t\t\t\t\t<a href="' +((__t = (item.href)) == null ? '' : __t) +'" ';if(item.target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += ' class="message-item-a">\n\t\t\t\t\t\t\t<span class="settings-icon ' +((__t = (item.className)) == null ? '' : __t) +'"></span>\n\t\t\t\t\t\t\t<span class="content">' +((__t = (item.content)) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t'; }) ;__p += '\n\t\t\t</ul>\n\t</div>\n\t</div>\n';};__p += '\n\n';}return __p}; | ||
this["JST"]["header/icon-view/skin"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\t<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n\t \t'; } ;__p += '\n\t \t<div class="btn-tips">\n\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t</div>\n\t</a>\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="color-title">拖动滑块选择颜色</div>\n\t\t\t<input type="range" class="color-range">\n\t\t\t<div class="selector-btn clearfix">\n\t\t\t\t<div class="check-default check-back">\n\t\t\t\t\t<div class="check-box ">\n\t\t\t\t\t\t<span class="un-check"></span>\n\t\t\t\t\t\t<span class="in-check"></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<label class="text">恢复默认</label>\n\t\t\t\t</div>\n\n\t\t\t\t<span class="comfirm-btn-style comfirm-btn">确定</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n';}return __p}; | ||
this["JST"]["header/icon-view/todos-item/todos-item"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t'; Talent._.each(reminds.remindList,function(item,index){ ;__p += '\n\t\t<li class="message-item">\n\t\t\t<a href="' +((__t = ( item.href )) == null ? '' : __t) +'" target="_blank" class="clearfix message-item-a">\n\t\t\t\t'; if(item.avatar.hasAvatar){ ;__p += '\n\t\t\t\t\t<div class="user-pic"><img src="' +((__t = ( item.avatar.medium)) == null ? '' : __t) +'"></div>\n\t\t\t\t'; }else{ ;__p += '\n\t\t\t\t\t<div class="user-pic" style="background-color: ' +((__t = ( item.avatar.color)) == null ? '' : __t) +'">' +((__t = ( item.userName.substr(0,1) || "Name")) == null ? '' : __t) +'</div>\n\t\t\t\t';};__p += '\n\t\t\t\t<div class="item-detail">\n\t\t\t\t\t<div class="detail-head clearfix">\n\t\t\t\t\t\t<span class="user-name">' +((__t = ( item.userName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="user-opr">' +((__t = ( item.teskName )) == null ? '' : __t) +'</span>\n\t\t\t\t\t\t<span class="date">' +((__t = ( item.date )) == null ? '' : __t) +'</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="detail-content">' +((__t = ( item.taskContent )) == null ? '' : __t) +'</div>\n\t\t\t\t</div>\n\t\t\t</a>\n\t\t</li>\n\t'; }) ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/todos"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(!reminds.remindCount&&target){;__p += ' target="' +((__t = (target)) == null ? '' : __t) +'"';};__p += '>\n\t'; if(reminds.remindCount){ ;__p += '\n \t\t<span class="new-message">' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'</span>\n \t'; } ;__p += '\n \t<div class="btn-tips">\n\t\t<div class="entry-trangle-top"></div>\n\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t</div>\n</a>\n\n'; if(reminds.remindCount){ ;__p += '\n\t<div class="list-wrapper">\n\t\t<div class="content-visible">\n\t\t\t<div class="title">' +((__t = ( "我的待办(" + reminds.remindCount + ")")) == null ? '' : __t) +'</div>\n\t\t\t<ul class="message-list">\n\t\t\t\t<div class="spinner">\n\t\t\t\t\t<div class="rect1"></div>\n\t\t\t\t\t<div class="rect2"></div>\n\t\t\t\t\t<div class="rect3"></div>\n\t\t\t\t\t<div class="rect4"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class="text-loading">加载中...</div>\n\t\t\t</ul>\n\t\t\t<li class="view-all">\n\t\t\t\t<a href="' +((__t = ( reminds.viewAllHref)) == null ? '' : __t) +'" target="_blank">查看全部</a>\n\t\t\t\t';if(showTodoIgnore){;__p += '\n\t\t\t\t<a href="javascript:void(0)" class="view-ignore-all" data-name="head-ignore-all">\n\t\t\t\t\t<div class="btn-tips-child">\n\t\t\t\t\t\t点击后仅将招聘和工作计划的待办全部转移到已处理中\t\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<span>忽略全部</span>\n\t\t\t\t</a>\n\t\t\t\t';};__p += '\n\t\t\t</li>\n\t\t</div>\n\t</div>\n'; } ;__p += '\n';}return __p}; | ||
this["JST"]["header/icon-view/upgrade"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '<a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" target="_blank" href="' +((__t = (href)) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t<!-- '; if(reminds.remindCount){ ;__p += ' -->\n\t\t\t<!-- TODO:new图标 -->\n\t\t\t<span class="new-icon">\n\n\t\t\t</span>\n\t\t\t<!-- '; } ;__p += ' -->\n\t\t\t<div class="btn-tips">\n\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t</div>\n</a>\n<div class="list-wrapper">\n</div>\n\n<!-- <a class="common-link ' +((__t = (iconName)) == null ? '' : __t) +'" href="' +((__t = ( (reminds.remindCount)?'javascript:void(0)':href )) == null ? '' : __t) +'" ';if(target){;__p += ' target="\n\t' +((__t = (target)) == null ? '' : __t) +'"\n\t\t';};__p += '>\n\t\t\t'; if(reminds.remindCount){ ;__p += '\n\t\t\t\t<span class="new-message">\n\t\t\t\t\t' +((__t = ( (reminds.remindCount <= 99)?reminds.remindCount : "99+" )) == null ? '' : __t) +'\n\t\t\t\t</span>\n\t\t\t\t'; } ;__p += '\n\t\t\t\t\t<div class="btn-tips">\n\t\t\t\t\t\t<div class="entry-trangle-top"></div>\n\t\t\t\t\t\t' +((__t = (title)) == null ? '' : __t) +'\n\t\t\t\t\t</div>\n</a> -->';}return __p}; | ||
this["JST"]["header/user-info"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __j = Array.prototype.join;function print() { __p += __j.call(arguments, '') }with (obj) {__p += '\n\t<div class="user-info">\n\t\t'; if(userInfo.avatar.hasAvatar){ ;__p += '\n\t\t\t<span class="user-photo"><img src="' +((__t = (userInfo.avatar.small)) == null ? '' : __t) +'"></span>\n\t\t'; }else{ ;__p += '\n\t\t\t<span class="name-pic" style="background-color: ' +((__t = (userInfo.avatar.color)) == null ? '' : __t) +'">' +((__t = ( userInfo.name.substr(0,1) || "Name")) == null ? '' : __t) +'</span>\n\t\t';};__p += '\n\t\t\t<span class="user-name">' +((__t = (userInfo.name)) == null ? '' : __t) +'</span>\n\t</div>\n\n\t<div class="dp-down-list">\n\t\t<ul class="list-ul-box dp-list-front">\n\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t<li class="dp-list-item"><a href="' +((__t = (item.href)) == null ? '' : __t) +'" target="' +((__t = ( item.target )) == null ? '' : __t) +'" data-name="' +((__t = ( item.type )) == null ? '' : __t) +'" index="' +((__t = ( index )) == null ? '' : __t) +'">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t'; }) ;__p += '\n\t\t\t<!-- <li class="item-high-light"></li> -->\n\t\t</ul>\n\n\t\t<ul class="list-ul-box dp-list-shadow">\n\t\t\t'; Talent._.each(userInfoDropDown,function(item,index){ ;__p += '\n\t\t\t\t<li class="' +((__t = ( 'item-'+ index )) == null ? '' : __t) +'" item-index="' +((__t = ( index )) == null ? '' : __t) +'"><a href="">' +((__t = ( item.title )) == null ? '' : __t) +'</a></li>\n\t\t\t'; }) ;__p += '\n\t\t</ul>\n\t</div>';}return __p}; | ||
this["JST"]["header/webim"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<span class="header-icon-titaim ico-webim disabled"></span>\n<b class="u-unread new-message hide">0<b>\n';}return __p}; | ||
return this["JST"] | ||
})(); | ||
@@ -59,3 +59,3 @@ /** 功能按钮单独的view **/ | ||
,autoHideCancle:function(){ | ||
// clearTimeout(this.autoHide); | ||
} | ||
@@ -246,40 +246,40 @@ //关闭下拉弹窗 | ||
var Skin = BaseView.extend({ | ||
template: jst["header/icon-view/skin"], | ||
className: "skin-icon-box", | ||
ui: { | ||
iconBtn: ".common-link", | ||
popList: ".list-wrapper", | ||
comfirmBtn: ".comfirm-btn", | ||
inputRange: ".color-range", | ||
checkbox: ".check-default" | ||
}, | ||
events: function() { | ||
var events = {} | ||
events["click " + this.ui.iconBtn] = "listShow" | ||
events["mousedown " + this.ui.popList] = "popListClick" | ||
events["mouseleave " + this.ui.popList] = "autoHideRegister" | ||
events["mouseenter " + this.ui.popList] = "autoHideCancle" | ||
events["click " + this.ui.comfirmBtn] = "getRangeVal" | ||
events["click " + this.ui.checkbox] = "setDefalutColor" | ||
return events | ||
}, | ||
getRangeVal: function() { | ||
template: jst['header/icon-view/skin'] | ||
,className : 'skin-icon-box' | ||
,ui: { | ||
iconBtn:".common-link" | ||
,popList:".list-wrapper" | ||
,comfirmBtn:".comfirm-btn" | ||
,inputRange:".color-range" | ||
,checkbox:".check-default" | ||
} | ||
,events: function () { | ||
var events = {}; | ||
events['click ' + this.ui.iconBtn] = 'listShow'; | ||
events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
events['click ' + this.ui.comfirmBtn] = 'getRangeVal'; | ||
events['click ' + this.ui.checkbox] = 'setDefalutColor'; | ||
return events; | ||
} | ||
,getRangeVal:function(){ | ||
var triggerData = { | ||
target: this.options.type, | ||
id: this.options.id, | ||
exportData: { | ||
rangeValue: this.ui.inputRange.val(), | ||
isDefaultColor: this.ui.checkbox.hasClass("check-go") | ||
target:this.options.type | ||
,id:this.options.id | ||
,exportData:{ | ||
rangeValue:this.ui.inputRange.val() | ||
,isDefaultColor : this.ui.checkbox.hasClass("check-go") | ||
} | ||
} | ||
this.trigger("iconOprEvents", triggerData) | ||
this.listClose() | ||
}, | ||
setDefalutColor: function() { | ||
this.ui.checkbox.toggleClass("check-back").toggleClass("check-go") | ||
}, | ||
messageRenew: function(newMsg) { | ||
this.model.clear({ silent: true }).set(newMsg) | ||
this.trigger("iconOprEvents",triggerData); | ||
this.listClose(); | ||
} | ||
}) | ||
,setDefalutColor:function(){ | ||
this.ui.checkbox.toggleClass("check-back").toggleClass("check-go"); | ||
} | ||
,messageRenew:function(newMsg){ | ||
this.model.clear({silent:true}).set(newMsg); | ||
} | ||
}); | ||
@@ -334,120 +334,102 @@ | ||
var Lang = BaseView.extend({ | ||
template: jst["header/icon-view/lang"], | ||
template: jst["header/icon-view/lang"], | ||
ui: { | ||
iconBtn: ".lang-region", | ||
showList: ".lang-region-box", | ||
popList: ".dp-down-list", | ||
listWrap: ".dp-down-list", | ||
listItem: ".dp-list-item a", | ||
listFront: ".dp-list-front", | ||
listShadow: ".dp-list-shadow" | ||
}, | ||
initialize: function(options) { | ||
this.options = options | ||
ui: { | ||
iconBtn: ".lang-region", | ||
showList: ".lang-region-box", | ||
popList: ".dp-down-list", | ||
listWrap: ".dp-down-list", | ||
listItem: ".dp-list-item a", | ||
listFront: ".dp-list-front", | ||
listShadow: ".dp-list-shadow" | ||
}, | ||
initialize: function(options) { | ||
this.options = options | ||
this.model.set(options.i18nInfo) | ||
this.model.set({ | ||
show: true, | ||
list: [] | ||
}) | ||
}, | ||
events: function() { | ||
var events = {} | ||
// events['click ' + this.ui.iconBtn] = 'selfListShow'; | ||
events["click " + this.ui.showList] = "showList" | ||
events["click " + this.ui.listItem] = "listItemScale" | ||
// events['mousedown ' + this.ui.popList] = 'popListClick'; | ||
// events['mouseleave ' + this.ui.popList] = 'autoHideRegister'; | ||
// events['mouseenter ' + this.ui.popList] = 'autoHideCancle'; | ||
// events['submit ' + this.ui.searchForm] = 'formSubmit'; | ||
return events | ||
}, | ||
onShow() { | ||
var self = this | ||
Talent.$.ajax({ | ||
url: self.options.i18nInfo.getApiUrl | ||
}).done(function(ret) { | ||
if (ret.Code === 1) { | ||
if (ret.Data.isOpenInternational) { | ||
self.model.set({ | ||
list: formatData(ret.Data.tenantLanguages) | ||
}) | ||
} | ||
} | ||
}) | ||
}, | ||
formatData(list) { | ||
/** | ||
* | ||
* | ||
[{ | ||
text: '中文(简体)', | ||
value: "zh_CN", | ||
}, { | ||
text: '中文(繁体)', | ||
value: 'zh_TW' | ||
}, { | ||
text: '英语(English)', | ||
value: 'en_US' | ||
} | ||
* | ||
*/ | ||
var mapping = { | ||
zh_CN: "中文(简体)", | ||
zh_TW: "中文(繁体)", | ||
en_US: "英语(English)" | ||
} | ||
var data = [] | ||
for (var i = 0; i < list.length; i++) { | ||
var item = list[i] | ||
data.push({ | ||
text: mapping[item], | ||
value: item | ||
}) | ||
} | ||
return data | ||
}, | ||
showList: function(e) { | ||
var self = this | ||
this.ui.listWrap.addClass("dp-down-active") | ||
clearTimeout(self.timer) | ||
Talent.$(document).off("mouseup.alertLang") | ||
Talent.$(document).on("mouseup.alertLang", function(e) { | ||
self.ui.listWrap.removeClass("dp-down-active") | ||
Talent.$(document).off("mouseup.alertLang") | ||
}) | ||
self.timer = setTimeout(function() { | ||
self.ui.listWrap.removeClass("dp-down-active") | ||
}, 6000) | ||
}, | ||
listItemScale: function(e) { | ||
var self = this | ||
var itemIndex = Talent.$(e.target).attr("index") | ||
var target = this.model.toJSON().list[itemIndex] | ||
this.trigger("iconClickEvent", this.model.toJSON().list[itemIndex]) | ||
this.ui.listWrap.removeClass("dp-down-active") | ||
!this.isIE() && this.ui.listShadow.show() | ||
this.model.set({ | ||
I18NUserLang: target.value | ||
}) | ||
this.ui.listShadow | ||
.find(".item-" + itemIndex) | ||
.addClass("li-scale") | ||
.siblings() | ||
.removeClass("li-scale") | ||
setTimeout(function() { | ||
self.ui.listShadow.hide() | ||
self.render() | ||
}, 350) | ||
}, | ||
isIE: function() { | ||
//ie? | ||
if (!!window.ActiveXObject || "ActiveXObject" in window) return true | ||
else return false | ||
} | ||
// this.model.set(options.i18nInfo) | ||
// this.model.set({ | ||
// show: true, | ||
// list: [] | ||
// }) | ||
}, | ||
refresh: function(params) { | ||
this.model.set(params); | ||
this.render(); | ||
}, | ||
setData: function(data) { | ||
this.model.set(data) | ||
// this.model.set({ | ||
// show: this.model.get('show'), | ||
// list: [] | ||
// }) | ||
}, | ||
events: function() { | ||
var events = {} | ||
events["click " + this.ui.showList] = "showList" | ||
events["click " + this.ui.listItem] = "listItemScale" | ||
return events; | ||
} | ||
,ui: { | ||
iconBtn:".lang-region" | ||
,showList:".lang-region-box" | ||
,popList:".dp-down-list" | ||
,listWrap:".dp-down-list" | ||
,listItem:".dp-list-item a" | ||
,listFront:".dp-list-front" | ||
,listShadow:".dp-list-shadow" | ||
} | ||
,initialize:function(options){ | ||
this.options = options; | ||
} | ||
,render: function() { | ||
var meData = this.model.toJSON(); | ||
if (meData.show) { | ||
this.$el.html(this.template(meData)); | ||
this.bindUIElements(); | ||
} else { | ||
this.$el.html(''); | ||
this.bindUIElements(); | ||
} | ||
return this; | ||
} | ||
,showList:function(e){ | ||
var self = this; | ||
this.ui.listWrap.addClass("dp-down-active"); | ||
clearTimeout(self.timer); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
Talent.$(document).on('mouseup.alertLang', function(e) { | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
}); | ||
self.timer = setTimeout(function(){ | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
},6000) | ||
} | ||
,listItemScale:function(e){ | ||
var self = this; | ||
var itemIndex = Talent.$(e.target).attr("index"); | ||
var target = this.model.toJSON().list[itemIndex]; | ||
this.trigger('iconClickEvent', this.model.toJSON().list[itemIndex]) | ||
this.ui.listWrap.removeClass("dp-down-active"); | ||
!this.isIE()&&this.ui.listShadow.show(); | ||
this.model.set({ | ||
I18NUserLang: target.value, | ||
}); | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
self.render(); | ||
},350); | ||
} | ||
}) | ||
@@ -605,134 +587,144 @@ | ||
/** 头部组件入口 **/ | ||
/** 头部组件入口 **/ | ||
var Header = Talent.Layout.extend({ | ||
template: jst["header/header"], | ||
className: "iTalent-header", | ||
initialize: function(options) { | ||
this.options = options | ||
template: jst["header/header"], | ||
className: "iTalent-header", | ||
initialize: function(options) { | ||
this.options = options | ||
this.viewMapping = { | ||
Search: Search, | ||
HomePage: HomePage, | ||
Message: Message, | ||
Skin: Skin, | ||
Todos: Todos, | ||
Settings: Settings, | ||
Upgrade: Upgrade, | ||
Lang: Lang, | ||
} | ||
}, | ||
ui: { | ||
btnGroup: ".btns-group", | ||
}, | ||
regions: { | ||
userInfoRegion: ".user-info-region", | ||
companyInfoRegion: ".company-info-region", | ||
langRegion: '.lang-region' | ||
}, | ||
onShow: function() {}, | ||
onRender: function() { | ||
this.companyInfoShow() | ||
this.userInfoShow() | ||
this.oprBtnShow() | ||
// this.renderLangView(); | ||
// if (this.options.langInfo.show) { | ||
this.langShow() | ||
// } | ||
}, | ||
langShow() { | ||
var self = this; | ||
const langView = new Lang({ | ||
i18nInfo: this.options.i18nInfo, | ||
}) | ||
this.langRegion.show(langView); | ||
this.listenTo(langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
}); | ||
this.viewMapping = { | ||
Search: Search, | ||
HomePage: HomePage, | ||
Message: Message, | ||
Skin: Skin, | ||
Todos: Todos, | ||
Settings: Settings, | ||
Upgrade: Upgrade, | ||
Lang: Lang, | ||
} | ||
}, | ||
ui: { | ||
btnGroup: ".btns-group", | ||
}, | ||
regions: { | ||
userInfoRegion: ".user-info-region", | ||
companyInfoRegion: ".company-info-region", | ||
langRegion: '.lang-region' | ||
}, | ||
onShow: function() {}, | ||
onRender: function() { | ||
this.companyInfoShow() | ||
this.userInfoShow() | ||
this.oprBtnShow() | ||
// this.renderLangView(); | ||
// if (this.options.langInfo.show) { | ||
this.langShow() | ||
// } | ||
}, | ||
refreshI18nView: function(params) { | ||
if (this.langView) { | ||
this.langView.setData(params.i18nInfo); | ||
this.langView.refresh({ | ||
list: params.datas, | ||
show: params.isOpenInternational | ||
}); | ||
}, | ||
//render userInfo | ||
userInfoShow: function() { | ||
this.userInfoRegion.show( | ||
new UserInfo({ | ||
userInfo: this.options.userInfo, | ||
userInfoDropDown: this.options.userInfoDropDown, | ||
}) | ||
) | ||
}, | ||
//render companyInfo | ||
companyInfoShow: function() { | ||
this.companyInfoRegion.show(new CompanyInfo(this.options.companyInfo)) | ||
}, | ||
//render opr iconbtns view | ||
oprBtnShow: function() { | ||
var self = this | ||
this.langRegion.show(this.langView); | ||
} | ||
}, | ||
langShow: function() { | ||
var self = this; | ||
// this.langView = new Lang({ | ||
// i18nInfo: this.options.i18nInfo, | ||
// }) | ||
//if (this.options.i18nInfo) { | ||
this.langView = new Lang(); | ||
this.listenTo(this.langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
}); | ||
}); | ||
//} | ||
if (this.options.i18nInfo) { | ||
this.langView.setData(this.options.i18nInfo); | ||
this.langRegion.show(this.langView); | ||
} | ||
}, | ||
//render userInfo | ||
userInfoShow: function() { | ||
this.userInfoRegion.show( | ||
new UserInfo({ | ||
userInfo: this.options.userInfo, | ||
userInfoDropDown: this.options.userInfoDropDown, | ||
}) | ||
) | ||
}, | ||
//render companyInfo | ||
companyInfoShow: function() { | ||
this.companyInfoRegion.show(new CompanyInfo(this.options.companyInfo)) | ||
}, | ||
//render opr iconbtns view | ||
oprBtnShow: function() { | ||
var self = this | ||
Talent._.each(this.options.oprBtn, function(item, index) { | ||
var node = document.createElement("li") | ||
Talent._.each(this.options.oprBtn, function(item, index) { | ||
var node = document.createElement("li") | ||
var iconViewName = item.type | ||
var iconViewName = item.type | ||
var regionName = iconViewName + "-region" | ||
var regionName = iconViewName + "-region" | ||
var className = "opr-btns " + regionName | ||
var className = "opr-btns " + regionName | ||
$(node).addClass(className) | ||
$(node).addClass(className) | ||
self.ui.btnGroup.prepend(node) | ||
self.ui.btnGroup.prepend(node) | ||
self.addRegion(regionName, "." + regionName) | ||
self.addRegion(regionName, "." + regionName) | ||
//链接打开方式,如果传则默认a标签没有target属性 | ||
item.target = item.target || "" | ||
//链接打开方式,如果传则默认a标签没有target属性 | ||
item.target = item.target || "" | ||
self[iconViewName] = new self.viewMapping[iconViewName](item) | ||
self[iconViewName] = new self.viewMapping[iconViewName](item) | ||
self[regionName].show(self[iconViewName]) | ||
self[regionName].show(self[iconViewName]) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "iconOprEvents", function(resp) { | ||
self.trigger("iconOprEvents", resp) | ||
}) | ||
//所有按钮点击抛出的事件 | ||
self.listenTo(self[iconViewName], "iconClickEvent", function(resp) { | ||
self.trigger("iconClickEvent", resp) | ||
}) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "ignoreAllTodo", function(resp) { | ||
self.trigger("ignoreAllTodo") | ||
}) | ||
}) | ||
}, | ||
reloadMessage: function(newMsg) { | ||
this[newMsg.type]["messageRenew"](newMsg) | ||
}, | ||
reloadWebIM: function() { | ||
if (this.webIMView) { | ||
this.webIMView.open() | ||
} | ||
}, | ||
webIMShow: function() { | ||
//var version = this._checkIEVersion(); | ||
//if(version == 8 || version == 9) return; | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "iconOprEvents", function(resp) { | ||
self.trigger("iconOprEvents", resp) | ||
}) | ||
//所有按钮点击抛出的事件 | ||
self.listenTo(self[iconViewName], "iconClickEvent", function(resp) { | ||
self.trigger("iconClickEvent", resp) | ||
}) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "ignoreAllTodo", function(resp) { | ||
self.trigger("ignoreAllTodo") | ||
}) | ||
}) | ||
}, | ||
reloadMessage: function(newMsg) { | ||
this[newMsg.type]["messageRenew"](newMsg) | ||
}, | ||
this.webIMView = new WebIMView() | ||
this.webIMRegion.show(this.webIMView) | ||
}, | ||
_checkIEVersion: function() { | ||
var ua = navigator.userAgent | ||
var s = "MSIE" | ||
var i = ua.indexOf(s) | ||
if (i >= 0) { | ||
//获取IE版本号 | ||
var ver = parseFloat(ua.substr(i + s.length)) | ||
} | ||
return ver | ||
}, | ||
_checkIEVersion: function() { | ||
var ua = navigator.userAgent | ||
var s = "MSIE" | ||
var i = ua.indexOf(s) | ||
if (i >= 0) { | ||
//获取IE版本号 | ||
var ver = parseFloat(ua.substr(i + s.length)) | ||
} | ||
return ver | ||
}, | ||
}) | ||
return Header | ||
}) |
{ | ||
"author": "Guo Meishan", | ||
"description": "iTalent header", | ||
"name": "@italentjs/italent-header", | ||
"main": "index.js", | ||
"configFile": "TalentJSConfig", | ||
"configUser": "ux", | ||
"version": "1.0.27", | ||
"scripts": { | ||
"build-prod": "rm -rf index.css && rm -rf index.js && grunt build", | ||
"auto-publish": "npm run build-prod && git add . && git commit -m 'fix: 修复一些已知问题' && npm version patch && npm publish" | ||
}, | ||
"dependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-watch": "~0.4.3", | ||
"grunt-contrib-jst": "~0.5.0", | ||
"grunt-contrib-connect": "~0.5.0", | ||
"grunt-contrib-compass": "0.8.0", | ||
"load-grunt-tasks": "~0.5.0" | ||
}, | ||
"devDependencies": { | ||
"grunt-css-url-replace": "^0.2.7", | ||
"grunt-cssjoin": "~0.2.0", | ||
"grunt-preprocess": "^5.1.0", | ||
"grunt-sass-replace": "^0.1.18", | ||
"grunt-string-replace": "^1.3.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"app", | ||
"src", | ||
"index.js", | ||
"index.css", | ||
"package.json" | ||
] | ||
"author": "Guo Meishan", | ||
"description": "iTalent header", | ||
"name": "@italentjs/italent-header", | ||
"main": "index.js", | ||
"configFile": "TalentJSConfig", | ||
"configUser": "ux", | ||
"version": "1.0.28", | ||
"scripts": { | ||
"build-prod": "rm -rf index.css && rm -rf index.js && grunt build", | ||
"auto-publish": "npm run build-prod && git add . && git commit -m 'fix: 修复一些已知问题' && npm version patch && npm publish" | ||
}, | ||
"dependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-watch": "~0.4.3", | ||
"grunt-contrib-jst": "~0.5.0", | ||
"grunt-contrib-connect": "~0.5.0", | ||
"grunt-contrib-compass": "0.8.0", | ||
"load-grunt-tasks": "~0.5.0" | ||
}, | ||
"devDependencies": { | ||
"grunt-css-url-replace": "^0.2.7", | ||
"grunt-cssjoin": "~0.2.0", | ||
"grunt-preprocess": "^5.1.0", | ||
"grunt-sass-replace": "^0.1.18", | ||
"grunt-string-replace": "^1.3.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"app", | ||
"src", | ||
"index.js", | ||
"index.css", | ||
"package.json" | ||
] | ||
} |
@@ -0,130 +1,140 @@ | ||
/** 头部组件入口 **/ | ||
var Header = Talent.Layout.extend({ | ||
template: jst["header/header"], | ||
className: "iTalent-header", | ||
initialize: function(options) { | ||
this.options = options | ||
template: jst["header/header"], | ||
className: "iTalent-header", | ||
initialize: function(options) { | ||
this.options = options | ||
this.viewMapping = { | ||
Search: Search, | ||
HomePage: HomePage, | ||
Message: Message, | ||
Skin: Skin, | ||
Todos: Todos, | ||
Settings: Settings, | ||
Upgrade: Upgrade, | ||
Lang: Lang, | ||
} | ||
}, | ||
ui: { | ||
btnGroup: ".btns-group", | ||
}, | ||
regions: { | ||
userInfoRegion: ".user-info-region", | ||
companyInfoRegion: ".company-info-region", | ||
langRegion: '.lang-region' | ||
}, | ||
onShow: function() {}, | ||
onRender: function() { | ||
this.companyInfoShow() | ||
this.userInfoShow() | ||
this.oprBtnShow() | ||
// this.renderLangView(); | ||
// if (this.options.langInfo.show) { | ||
this.langShow() | ||
// } | ||
}, | ||
langShow: function() { | ||
var self = this; | ||
if (this.options.i18nInfo) { | ||
var langView = new Lang({ | ||
i18nInfo: this.options.i18nInfo, | ||
}) | ||
this.langRegion.show(langView); | ||
this.listenTo(langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
}); | ||
}); | ||
this.viewMapping = { | ||
Search: Search, | ||
HomePage: HomePage, | ||
Message: Message, | ||
Skin: Skin, | ||
Todos: Todos, | ||
Settings: Settings, | ||
Upgrade: Upgrade, | ||
Lang: Lang, | ||
} | ||
}, | ||
//render userInfo | ||
userInfoShow: function() { | ||
this.userInfoRegion.show( | ||
new UserInfo({ | ||
userInfo: this.options.userInfo, | ||
userInfoDropDown: this.options.userInfoDropDown, | ||
}) | ||
) | ||
}, | ||
//render companyInfo | ||
companyInfoShow: function() { | ||
this.companyInfoRegion.show(new CompanyInfo(this.options.companyInfo)) | ||
}, | ||
//render opr iconbtns view | ||
oprBtnShow: function() { | ||
var self = this | ||
}, | ||
ui: { | ||
btnGroup: ".btns-group", | ||
}, | ||
regions: { | ||
userInfoRegion: ".user-info-region", | ||
companyInfoRegion: ".company-info-region", | ||
langRegion: '.lang-region' | ||
}, | ||
onShow: function() {}, | ||
onRender: function() { | ||
this.companyInfoShow() | ||
this.userInfoShow() | ||
this.oprBtnShow() | ||
// this.renderLangView(); | ||
// if (this.options.langInfo.show) { | ||
this.langShow() | ||
// } | ||
}, | ||
refreshI18nView: function(params) { | ||
if (this.langView) { | ||
this.langView.setData(params.i18nInfo); | ||
this.langView.refresh({ | ||
list: params.datas, | ||
show: params.isOpenInternational | ||
}); | ||
this.langRegion.show(this.langView); | ||
} | ||
}, | ||
langShow: function() { | ||
var self = this; | ||
// this.langView = new Lang({ | ||
// i18nInfo: this.options.i18nInfo, | ||
// }) | ||
//if (this.options.i18nInfo) { | ||
this.langView = new Lang(); | ||
this.listenTo(this.langView, 'iconClickEvent', function(ret) { | ||
self.trigger('iconClickEvent', { | ||
type: 'Lang', | ||
value: ret | ||
}); | ||
}); | ||
//} | ||
if (this.options.i18nInfo) { | ||
this.langView.setData(this.options.i18nInfo); | ||
this.langRegion.show(this.langView); | ||
} | ||
}, | ||
//render userInfo | ||
userInfoShow: function() { | ||
this.userInfoRegion.show( | ||
new UserInfo({ | ||
userInfo: this.options.userInfo, | ||
userInfoDropDown: this.options.userInfoDropDown, | ||
}) | ||
) | ||
}, | ||
//render companyInfo | ||
companyInfoShow: function() { | ||
this.companyInfoRegion.show(new CompanyInfo(this.options.companyInfo)) | ||
}, | ||
//render opr iconbtns view | ||
oprBtnShow: function() { | ||
var self = this | ||
Talent._.each(this.options.oprBtn, function(item, index) { | ||
var node = document.createElement("li") | ||
Talent._.each(this.options.oprBtn, function(item, index) { | ||
var node = document.createElement("li") | ||
var iconViewName = item.type | ||
var iconViewName = item.type | ||
var regionName = iconViewName + "-region" | ||
var regionName = iconViewName + "-region" | ||
var className = "opr-btns " + regionName | ||
var className = "opr-btns " + regionName | ||
$(node).addClass(className) | ||
$(node).addClass(className) | ||
self.ui.btnGroup.prepend(node) | ||
self.ui.btnGroup.prepend(node) | ||
self.addRegion(regionName, "." + regionName) | ||
self.addRegion(regionName, "." + regionName) | ||
//链接打开方式,如果传则默认a标签没有target属性 | ||
item.target = item.target || "" | ||
//链接打开方式,如果传则默认a标签没有target属性 | ||
item.target = item.target || "" | ||
self[iconViewName] = new self.viewMapping[iconViewName](item) | ||
self[iconViewName] = new self.viewMapping[iconViewName](item) | ||
self[regionName].show(self[iconViewName]) | ||
self[regionName].show(self[iconViewName]) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "iconOprEvents", function(resp) { | ||
self.trigger("iconOprEvents", resp) | ||
}) | ||
//所有按钮点击抛出的事件 | ||
self.listenTo(self[iconViewName], "iconClickEvent", function(resp) { | ||
self.trigger("iconClickEvent", resp) | ||
}) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "ignoreAllTodo", function(resp) { | ||
self.trigger("ignoreAllTodo") | ||
}) | ||
}) | ||
}, | ||
reloadMessage: function(newMsg) { | ||
this[newMsg.type]["messageRenew"](newMsg) | ||
}, | ||
reloadWebIM: function() { | ||
if (this.webIMView) { | ||
this.webIMView.open() | ||
} | ||
}, | ||
webIMShow: function() { | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "iconOprEvents", function(resp) { | ||
self.trigger("iconOprEvents", resp) | ||
}) | ||
//所有按钮点击抛出的事件 | ||
self.listenTo(self[iconViewName], "iconClickEvent", function(resp) { | ||
self.trigger("iconClickEvent", resp) | ||
}) | ||
//按钮下拉列表中抛出的事件(搜索、换肤) | ||
self.listenTo(self[iconViewName], "ignoreAllTodo", function(resp) { | ||
self.trigger("ignoreAllTodo") | ||
}) | ||
}) | ||
}, | ||
reloadMessage: function(newMsg) { | ||
this[newMsg.type]["messageRenew"](newMsg) | ||
}, | ||
this.webIMView = new WebIMView() | ||
this.webIMRegion.show(this.webIMView) | ||
}, | ||
_checkIEVersion: function() { | ||
var ua = navigator.userAgent | ||
var s = "MSIE" | ||
var i = ua.indexOf(s) | ||
if (i >= 0) { | ||
//获取IE版本号 | ||
var ver = parseFloat(ua.substr(i + s.length)) | ||
} | ||
return ver | ||
}, | ||
}) | ||
_checkIEVersion: function() { | ||
var ua = navigator.userAgent | ||
var s = "MSIE" | ||
var i = ua.indexOf(s) | ||
if (i >= 0) { | ||
//获取IE版本号 | ||
var ver = parseFloat(ua.substr(i + s.length)) | ||
} | ||
return ver | ||
}, | ||
}) |
@@ -19,3 +19,3 @@ //基类 | ||
,autoHideCancle:function(){ | ||
// clearTimeout(this.autoHide); | ||
} | ||
@@ -22,0 +22,0 @@ //关闭下拉弹窗 |
var Lang = BaseView.extend({ | ||
template: jst["header/icon-view/lang"], | ||
template: jst["header/icon-view/lang"], | ||
ui: { | ||
iconBtn: ".lang-region", | ||
showList: ".lang-region-box", | ||
popList: ".dp-down-list", | ||
listWrap: ".dp-down-list", | ||
listItem: ".dp-list-item a", | ||
listFront: ".dp-list-front", | ||
listShadow: ".dp-list-shadow" | ||
}, | ||
initialize: function(options) { | ||
this.options = options | ||
ui: { | ||
iconBtn: ".lang-region", | ||
showList: ".lang-region-box", | ||
popList: ".dp-down-list", | ||
listWrap: ".dp-down-list", | ||
listItem: ".dp-list-item a", | ||
listFront: ".dp-list-front", | ||
listShadow: ".dp-list-shadow" | ||
}, | ||
initialize: function(options) { | ||
this.options = options | ||
this.model.set(options.i18nInfo) | ||
this.model.set({ | ||
show: true, | ||
list: [] | ||
}) | ||
}, | ||
events: function() { | ||
var events = {} | ||
events["click " + this.ui.showList] = "showList" | ||
events["click " + this.ui.listItem] = "listItemScale" | ||
// this.model.set(options.i18nInfo) | ||
// this.model.set({ | ||
// show: true, | ||
// list: [] | ||
// }) | ||
}, | ||
refresh: function(params) { | ||
this.model.set(params); | ||
this.render(); | ||
}, | ||
setData: function(data) { | ||
this.model.set(data) | ||
// this.model.set({ | ||
// show: this.model.get('show'), | ||
// list: [] | ||
// }) | ||
}, | ||
events: function() { | ||
var events = {} | ||
events["click " + this.ui.showList] = "showList" | ||
events["click " + this.ui.listItem] = "listItemScale" | ||
return events; | ||
} | ||
,ui: { | ||
,ui: { | ||
iconBtn:".lang-region" | ||
@@ -35,44 +50,29 @@ ,showList:".lang-region-box" | ||
,listFront:".dp-list-front" | ||
,listShadow:".dp-list-shadow" | ||
,listShadow:".dp-list-shadow" | ||
} | ||
,initialize:function(options){ | ||
this.options = options; | ||
} | ||
,render: function() { | ||
this.model.set(options.i18nInfo) | ||
this.model.set({ | ||
show: true, | ||
list: [], | ||
}) | ||
} | ||
,events: function () { | ||
var events = {}; | ||
// events['click ' + this.ui.iconBtn] = 'selfListShow'; | ||
events['click ' + this.ui.showList] = 'showList'; | ||
events['click ' + this.ui.listItem] = 'listItemScale'; | ||
return events; | ||
var meData = this.model.toJSON(); | ||
if (meData.show) { | ||
this.$el.html(this.template(meData)); | ||
this.bindUIElements(); | ||
} else { | ||
this.$el.html(''); | ||
this.bindUIElements(); | ||
} | ||
return this; | ||
} | ||
,onShow:function(){ | ||
,showList:function(e){ | ||
var self = this; | ||
Talent.$.ajax({ | ||
url: self.options.i18nInfo.getApiUrl | ||
}) | ||
.done(function(ret){ | ||
if (ret.Code === 1) { | ||
if (ret.Data.isOpenInternational) { | ||
self.model.set({ | ||
list: ret.Data.tenantLanguageModels || [] | ||
}); | ||
self.render(); | ||
} | ||
} | ||
}); | ||
} | ||
,showList:function(e){ | ||
var self = this; | ||
this.ui.listWrap.addClass("dp-down-active"); | ||
clearTimeout(self.timer); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
Talent.$(document).on('mouseup.alertLang', function(e) { | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
self.ui.listWrap.removeClass("dp-down-active"); | ||
Talent.$(document).off('mouseup.alertLang'); | ||
@@ -83,9 +83,9 @@ }); | ||
},6000) | ||
} | ||
,listItemScale:function(e){ | ||
var self = this; | ||
} | ||
,listItemScale:function(e){ | ||
var self = this; | ||
var itemIndex = Talent.$(e.target).attr("index"); | ||
var target = this.model.toJSON().list[itemIndex]; | ||
this.trigger('iconClickEvent', this.model.toJSON().list[itemIndex]) | ||
this.ui.listWrap.removeClass("dp-down-active"); | ||
this.ui.listWrap.removeClass("dp-down-active"); | ||
!this.isIE()&&this.ui.listShadow.show(); | ||
@@ -97,9 +97,9 @@ | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
this.ui.listShadow.find(".item-" + itemIndex).addClass("li-scale").siblings().removeClass("li-scale"); | ||
setTimeout(function(){ | ||
self.ui.listShadow.hide(); | ||
self.render(); | ||
},350); | ||
} | ||
},350); | ||
} | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 10 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
11380395
463
73584
39