mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
minify
This commit is contained in:
parent
8058ba60ba
commit
9063a8efde
5 changed files with 18 additions and 6 deletions
|
|
@ -899,7 +899,7 @@ function get_by_id(id) {
|
|||
|
||||
jQuery(function($){
|
||||
// display popup menu that contains member actions and document actions
|
||||
$(document).click(function(evt) {
|
||||
$(document).on('click touchstart', function(evt) {
|
||||
var $area = $('#popup_menu_area');
|
||||
if(!$area.length) $area = $('<div id="popup_menu_area" tabindex="0" style="display:none;z-index:9999" />').appendTo(document.body);
|
||||
|
||||
|
|
@ -915,6 +915,18 @@ jQuery(function($){
|
|||
if(cls) match = cls.match(new RegExp('(?:^| )((document|comment|member)_([1-9]\\d*))(?: |$)',''));
|
||||
if(!match) return;
|
||||
|
||||
// mobile에서 touchstart에 의한 동작 시 pageX, pageY 위치를 구함
|
||||
if(evt.pageX===undefined || evt.pageY===undefined)
|
||||
{
|
||||
var touch = evt.originalEvent.touches[0];
|
||||
if(touch!==undefined || !touch)
|
||||
{
|
||||
touch = evt.originalEvent.changedTouches[0];
|
||||
}
|
||||
evt.pageX = touch.pageX;
|
||||
evt.pageY = touch.pageY;
|
||||
}
|
||||
|
||||
var action = 'get'+ucfirst(match[2])+'Menu';
|
||||
var params = {
|
||||
mid : current_mid,
|
||||
|
|
@ -1702,7 +1714,7 @@ function xml2json(xml, tab, ignoreAttrib) {
|
|||
}
|
||||
|
||||
$(function($){
|
||||
$('.wfsr')
|
||||
$(document)
|
||||
.ajaxStart(function(){
|
||||
$(window).bind('beforeunload', beforeUnloadHandler);
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue