mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Delete .xfsr
This commit is contained in:
parent
ad84896b03
commit
d78b8e8415
3 changed files with 3 additions and 66 deletions
|
|
@ -176,26 +176,6 @@ a img {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Waiting for server response */
|
|
||||||
.wfsr {
|
|
||||||
z-index: 100;
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
right: 0;
|
|
||||||
margin: 0;
|
|
||||||
padding: 20px 0 0 0;
|
|
||||||
border-bottom: 1px solid #ccc;
|
|
||||||
text-align: center;
|
|
||||||
font: bold 16px/60px "Helvetica Neue", Helvetica, Arial, Dotum, sans-serif;
|
|
||||||
color: #fff;
|
|
||||||
opacity: .8;
|
|
||||||
filter: alpha(opacity=80);
|
|
||||||
box-shadow: 0 0 5px #000;
|
|
||||||
background: #333 url("../../common/img/msg.loading.gif") no-repeat center 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* alert */
|
/* alert */
|
||||||
#rhymix_alert {
|
#rhymix_alert {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
|
|
@ -12,25 +12,17 @@
|
||||||
window.show_ajax_errors = ['ALL'];
|
window.show_ajax_errors = ['ALL'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set this variable to false to hide the "waiting for server response" layer.
|
* Set this variable to true to show the "do you want to leave the page?" dialog.
|
||||||
*/
|
* This may be useful on pages with important forms, but it is generally not recommended.
|
||||||
window.show_waiting_message = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set this variable to false to hide the "do you want to leave the page?" dialog.
|
|
||||||
*/
|
*/
|
||||||
window.show_leaving_warning = false;
|
window.show_leaving_warning = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This variable becomes true when the user tries to navigate away from the page.
|
* This variable becomes true when the user tries to navigate away from the page.
|
||||||
|
* It should not be manually edited.
|
||||||
*/
|
*/
|
||||||
var page_unloading = false;
|
var page_unloading = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* This variable stores the .wfsr jQuery object.
|
|
||||||
*/
|
|
||||||
var waiting_obj = $(".wfsr");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function for compatibility with XE's exec_xml()
|
* Function for compatibility with XE's exec_xml()
|
||||||
*/
|
*/
|
||||||
|
|
@ -60,21 +52,9 @@
|
||||||
// Check whether this is a cross-domain request. If so, use an alternative method.
|
// Check whether this is a cross-domain request. If so, use an alternative method.
|
||||||
if (!isSameOrigin(location.href, url)) return send_by_form(url, params);
|
if (!isSameOrigin(location.href, url)) return send_by_form(url, params);
|
||||||
|
|
||||||
// Delay the waiting message for 1 second to prevent rapid blinking.
|
|
||||||
waiting_obj.css("opacity", 0.0);
|
|
||||||
var wfsr_timeout = setTimeout(function() {
|
|
||||||
if (show_waiting_message) {
|
|
||||||
waiting_obj.css("opacity", "").show();
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
// Define the success handler.
|
// Define the success handler.
|
||||||
successHandler = function(data, textStatus, xhr) {
|
successHandler = function(data, textStatus, xhr) {
|
||||||
|
|
||||||
// Hide the waiting message.
|
|
||||||
clearTimeout(wfsr_timeout);
|
|
||||||
waiting_obj.hide().trigger("cancel_confirm");
|
|
||||||
|
|
||||||
// Copy data to the result object.
|
// Copy data to the result object.
|
||||||
var result = {};
|
var result = {};
|
||||||
$.each(data, function(key, val) {
|
$.each(data, function(key, val) {
|
||||||
|
|
@ -151,9 +131,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the waiting message and display an error notice.
|
|
||||||
clearTimeout(wfsr_timeout);
|
|
||||||
waiting_obj.hide().trigger("cancel_confirm");
|
|
||||||
var error_info, msg;
|
var error_info, msg;
|
||||||
|
|
||||||
if ($(".x_modal-body").size()) {
|
if ($(".x_modal-body").size()) {
|
||||||
|
|
@ -246,21 +223,9 @@
|
||||||
request_info = params.module + "." + params.act;
|
request_info = params.module + "." + params.act;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delay the waiting message for 1 second to prevent rapid blinking.
|
|
||||||
waiting_obj.css("opacity", 0.0);
|
|
||||||
var wfsr_timeout = setTimeout(function() {
|
|
||||||
if (show_waiting_message) {
|
|
||||||
waiting_obj.css("opacity", "").show();
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
// Define the success handler.
|
// Define the success handler.
|
||||||
var successHandler = function(data, textStatus, xhr) {
|
var successHandler = function(data, textStatus, xhr) {
|
||||||
|
|
||||||
// Hide the waiting message.
|
|
||||||
clearTimeout(wfsr_timeout);
|
|
||||||
waiting_obj.hide().trigger("cancel_confirm");
|
|
||||||
|
|
||||||
// Add debug information.
|
// Add debug information.
|
||||||
if (data._rx_debug) {
|
if (data._rx_debug) {
|
||||||
data._rx_debug.page_title = "AJAX : " + request_info;
|
data._rx_debug.page_title = "AJAX : " + request_info;
|
||||||
|
|
@ -329,9 +294,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the waiting message and display an error notice.
|
|
||||||
clearTimeout(wfsr_timeout);
|
|
||||||
waiting_obj.hide().trigger("cancel_confirm");
|
|
||||||
var error_info, msg;
|
var error_info, msg;
|
||||||
|
|
||||||
// If a callback function is defined, call it and check if it returns false.
|
// If a callback function is defined, call it and check if it returns false.
|
||||||
|
|
@ -494,8 +456,6 @@
|
||||||
* Register the beforeUnload handler.
|
* Register the beforeUnload handler.
|
||||||
*/
|
*/
|
||||||
$(function() {
|
$(function() {
|
||||||
waiting_obj = $('.wfsr');
|
|
||||||
waiting_obj.text(waiting_obj.data('message'));
|
|
||||||
if (show_leaving_warning) {
|
if (show_leaving_warning) {
|
||||||
$(document).ajaxStart(function() {
|
$(document).ajaxStart(function() {
|
||||||
$(window).bind("beforeunload", beforeUnloadHandler);
|
$(window).bind("beforeunload", beforeUnloadHandler);
|
||||||
|
|
|
||||||
|
|
@ -83,9 +83,6 @@
|
||||||
{!! "\n\n" !!}
|
{!! "\n\n" !!}
|
||||||
|
|
||||||
<!-- ETC -->
|
<!-- ETC -->
|
||||||
@desktop
|
|
||||||
<div id="rhymix_waiting" class="wfsr" data-message="@lang('common.msg_call_server')"></div>
|
|
||||||
@enddesktop
|
|
||||||
<div id="rhymix_alert"></div>
|
<div id="rhymix_alert"></div>
|
||||||
<div id="rhymix_debug_panel"></div>
|
<div id="rhymix_debug_panel"></div>
|
||||||
<div id="rhymix_debug_button"></div>
|
<div id="rhymix_debug_button"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue