gluster-web-interface/app/assets/javascripts/application.js

30 lines
720 B
JavaScript
Raw Normal View History

2016-04-25 00:47:31 +00:00
//= require jquery
2016-07-07 23:39:52 +00:00
//= require bootstrap-sprockets
2016-04-25 00:47:31 +00:00
//= require jquery_ujs
//= require turbolinks
2017-10-22 06:30:44 +00:00
//= require bootstrap.min.js
//= require gentelella
//= require gentelella-custom
$(function() {
2017-10-29 06:15:18 +00:00
$('#flash').delay(500).fadeIn('normal', function() {
$(this).delay(2500).fadeOut();
});
});
2017-10-29 06:15:18 +00:00
function CheckLocation(){
$(document).mousedown(function(e){
// context menu 가 아닌 다른 영역을 클릭한경우 판단
if ($(e.target).parents(".contextmenu").length !== 0)
return;
$(".contextmenu").hide();
$(document).unbind('mousedown');
});
}
function ShowContextMenu(className){
$("."+className).css({
left:event.pageX+"px",
top:event.pageY+"px"
}).show();
}