sub javascripts_inline {
_setup_formats(),
_setup_focus(),
+ _setup_ajax_spinner(),
}
sub use_javascript {
}
}
+sub _setup_ajax_spinner {
+ return SL::Presenter->get->render('layout/ajax_spinner_setup', { type => 'js' });
+}
+
1;
padding: 0;
border: 0;
overflow: hidden;
+ min-height: 20px;
width: 100%;
border-spacing: 0;
font-size: 12px;
font-family: verdana,arial,sans-serif;
vertical-align: middle;
}
+
+#frame-header #ajax-spinner {
+ margin-top: 2px;
+ margin-right: 10px;
+ display: none;
+}
color: white;
border: 0;
overflow: hidden;
+ min-height: 20px;
width: 100%;
border-spacing: 0;
font-size: 12px;
font-family: verdana,arial,sans-serif;
vertical-align: middle;
}
+
+#frame-header #ajax-spinner {
+ margin-top: 2px;
+ margin-right: 10px;
+ display: none;
+ width: 16px;
+ height: 16px;
+ min-width: 16px;
+ min-height: 16px;
+}
--- /dev/null
+$(function() {
+ $(document).ajaxSend(function() {
+ $('#ajax-spinner').show();
+ }).ajaxStop(function() {
+ $('#ajax-spinner').hide();
+ });
+});
-[%- USE T8 %]
+[%- USE T8 %][%- USE LxERP -%]
<div id="frame-header">
[% UNLESS is_links %]
<span class="frame-header-element frame-header-left">
[% now.to_lxoffice %] -
[% now.hms %]
</span>
+ <span class="frame-header-element frame-header-right" id="ajax-spinner">
+ <img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]">
+ </span>
</div>
[%- USE T8 %]
-[% USE HTML %]
+[% USE HTML %][%- USE LxERP -%]
<script type="text/javascript">
<!--
function clockon() {
<a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
[% date %] <span id='clock_id' style='position:relative'></span>
</span>
+ <span class="frame-header-element frame-header-right" id="ajax-spinner">
+ <img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]">
+ </span>
</div>
<div id="main_menu_div"></div>
[%- USE T8 %]
-[% USE HTML %]
+[% USE HTML %][%- USE LxERP -%]
<script type="text/javascript" src="js/quicksearch_input.js"></script>
<script type="text/javascript">
<!--
<a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
[% date %] <span id='clock_id' style='position:relative'></span>
</span>
+ <span class="frame-header-element frame-header-right" id="ajax-spinner">
+ <img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]">
+ </span>
</div>
<div id="menuv3">