mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
0.5 sec delay before blur layer show up -> 1.0 sec
added x_btn-primary class to the ok button on the common dialog for 'enter key' compatibility git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12585 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
55a706a8ef
commit
d255f503b8
2 changed files with 19 additions and 3 deletions
|
|
@ -313,6 +313,14 @@ $.exec_xml = window.exec_xml = function(module, act, params, callback_func, resp
|
|||
// ajax 통신중 대기 메세지 출력 (show_waiting_message값을 false로 세팅시 보이지 않음)
|
||||
var waiting_obj = $('.wfsr');
|
||||
if(show_waiting_message && waiting_obj.length) {
|
||||
|
||||
var timeoutId = $(".wfsr").data('timeout_id');
|
||||
if(timeoutId) clearTimeout(timeoutId);
|
||||
$(".wfsr").css('opacity', 0.0);
|
||||
$(".wfsr").data('timeout_id', setTimeout(function(){
|
||||
$(".wfsr").css('opacity', '');
|
||||
}, 1000));
|
||||
|
||||
waiting_obj.html(waiting_message).show();
|
||||
}
|
||||
}
|
||||
|
|
@ -359,10 +367,12 @@ $.exec_json = function(action,data,func){
|
|||
action = action.split(".");
|
||||
if(action.length == 2){
|
||||
// The cover can be disturbing if it consistently blinks (because ajax call usually takes very short time). So make it invisible for the 1st 0.5 sec and then make it visible.
|
||||
var timeoutId = $(".wfsr").data('timeout_id');
|
||||
if(timeoutId) clearTimeout(timeoutId);
|
||||
$(".wfsr").css('opacity', 0.0);
|
||||
setTimeout(function(){
|
||||
$(".wfsr").data('timeout_id', setTimeout(function(){
|
||||
$(".wfsr").css('opacity', '');
|
||||
}, 500);
|
||||
}, 1000));
|
||||
if(show_waiting_message) $(".wfsr").html(waiting_message).show();
|
||||
|
||||
$.extend(data,{module:action[0],act:action[1]});
|
||||
|
|
@ -398,6 +408,12 @@ $.fn.exec_html = function(action,data,type,func,args){
|
|||
var self = $(this);
|
||||
action = action.split(".");
|
||||
if(action.length == 2){
|
||||
var timeoutId = $(".wfsr").data('timeout_id');
|
||||
if(timeoutId) clearTimeout(timeoutId);
|
||||
$(".wfsr").css('opacity', 0.0);
|
||||
$(".wfsr").data('timeout_id', setTimeout(function(){
|
||||
$(".wfsr").css('opacity', '');
|
||||
}, 1000));
|
||||
if(show_waiting_message) $(".wfsr").html(waiting_message).show();
|
||||
|
||||
$.extend(data,{module:action[0],act:action[1]});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue