rhymix/modules/communication/tpl/js/member_communication.js
conory b1cb1f3f34 다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리
변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지

CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
2018-08-03 19:45:30 +09:00

28 lines
814 B
JavaScript

(function($){
var $bar;
window.xeNotifyMessage = function(text, count){
$bar = $('div.message.info');
if(!$bar.length) {
$bar = jQuery('<div class="rhymix_message info"></div>').hide().css({
'position' : 'absolute',
'opacity' : 0.7,
'z-index' : 10000,
}).appendTo(document.body);
}
text = text.replace('%d', count);
var link = jQuery('<a></a>');
link.attr("href", current_url.setQuery('module','').setQuery('act','dispCommunicationMessages'));
//link.attr("onclick", "popopen(this.href, 'popup');xeNotifyMessageClose(); return false;");
link.text(text);
var para = jQuery('<p></p>');
para.append(link).appendTo($bar);
$bar.show().animate({top:0});
};
window.xeNotifyMessageClose = function(){
setTimeout(function(){
$bar.slideUp();
}, 2000);
};
})(jQuery);