Revision 81903154
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Layout/None.pm | ||
---|---|---|
8 | 8 |
sub javascripts_inline { |
9 | 9 |
_setup_formats(), |
10 | 10 |
_setup_focus(), |
11 |
_setup_ajax_spinner(), |
|
11 | 12 |
} |
12 | 13 |
|
13 | 14 |
sub use_javascript { |
... | ... | |
48 | 49 |
} |
49 | 50 |
} |
50 | 51 |
|
52 |
sub _setup_ajax_spinner { |
|
53 |
return SL::Presenter->get->render('layout/ajax_spinner_setup', { type => 'js' }); |
|
54 |
} |
|
55 |
|
|
51 | 56 |
1; |
css/kivitendo/frame_header/header.css | ||
---|---|---|
11 | 11 |
padding: 0; |
12 | 12 |
border: 0; |
13 | 13 |
overflow: hidden; |
14 |
min-height: 20px; |
|
14 | 15 |
width: 100%; |
15 | 16 |
border-spacing: 0; |
16 | 17 |
font-size: 12px; |
... | ... | |
31 | 32 |
font-family: verdana,arial,sans-serif; |
32 | 33 |
vertical-align: middle; |
33 | 34 |
} |
35 |
|
|
36 |
#frame-header #ajax-spinner { |
|
37 |
margin-top: 2px; |
|
38 |
margin-right: 10px; |
|
39 |
display: none; |
|
40 |
} |
css/lx-office-erp/frame_header/header.css | ||
---|---|---|
15 | 15 |
color: white; |
16 | 16 |
border: 0; |
17 | 17 |
overflow: hidden; |
18 |
min-height: 20px; |
|
18 | 19 |
width: 100%; |
19 | 20 |
border-spacing: 0; |
20 | 21 |
font-size: 12px; |
... | ... | |
36 | 37 |
font-family: verdana,arial,sans-serif; |
37 | 38 |
vertical-align: middle; |
38 | 39 |
} |
40 |
|
|
41 |
#frame-header #ajax-spinner { |
|
42 |
margin-top: 2px; |
|
43 |
margin-right: 10px; |
|
44 |
display: none; |
|
45 |
width: 16px; |
|
46 |
height: 16px; |
|
47 |
min-width: 16px; |
|
48 |
min-height: 16px; |
|
49 |
} |
templates/webpages/layout/ajax_spinner_setup.js | ||
---|---|---|
1 |
$(function() { |
|
2 |
$(document).ajaxSend(function() { |
|
3 |
$('#ajax-spinner').show(); |
|
4 |
}).ajaxStop(function() { |
|
5 |
$('#ajax-spinner').hide(); |
|
6 |
}); |
|
7 |
}); |
templates/webpages/menu/header.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
1 |
[%- USE T8 %][%- USE LxERP -%]
|
|
2 | 2 |
<div id="frame-header"> |
3 | 3 |
[% UNLESS is_links %] |
4 | 4 |
<span class="frame-header-element frame-header-left"> |
... | ... | |
16 | 16 |
[% now.to_lxoffice %] - |
17 | 17 |
[% now.hms %] |
18 | 18 |
</span> |
19 |
<span class="frame-header-element frame-header-right" id="ajax-spinner"> |
|
20 |
<img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]"> |
|
21 |
</span> |
|
19 | 22 |
</div> |
templates/webpages/menu/menunew.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 |
[% USE HTML %] |
|
2 |
[% USE HTML %][%- USE LxERP -%]
|
|
3 | 3 |
<script type="text/javascript"> |
4 | 4 |
<!-- |
5 | 5 |
function clockon() { |
... | ... | |
26 | 26 |
<a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>] |
27 | 27 |
[% date %] <span id='clock_id' style='position:relative'></span> |
28 | 28 |
</span> |
29 |
<span class="frame-header-element frame-header-right" id="ajax-spinner"> |
|
30 |
<img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]"> |
|
31 |
</span> |
|
29 | 32 |
</div> |
30 | 33 |
|
31 | 34 |
<div id="main_menu_div"></div> |
templates/webpages/menu/menuv3.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 |
[% USE HTML %] |
|
2 |
[% USE HTML %][%- USE LxERP -%]
|
|
3 | 3 |
<script type="text/javascript" src="js/quicksearch_input.js"></script> |
4 | 4 |
<script type="text/javascript"> |
5 | 5 |
<!-- |
... | ... | |
25 | 25 |
<a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>] |
26 | 26 |
[% date %] <span id='clock_id' style='position:relative'></span> |
27 | 27 |
</span> |
28 |
<span class="frame-header-element frame-header-right" id="ajax-spinner"> |
|
29 |
<img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]"> |
|
30 |
</span> |
|
28 | 31 |
</div> |
29 | 32 |
<div id="menuv3"> |
30 | 33 |
|
Auch abrufbar als: Unified diff
Globaler AJAX-Spinner in Headerzeile rechts