Last change
on this file since 28049 was
16016,
checked in by grum, 12 years ago
|
feature:2664- compatibility with Piwigo 2.4
|
-
Property svn:executable set to
*
|
File size:
847 bytes
|
Line | |
---|
1 | {* common file for errors/infos dialog box *} |
---|
2 | |
---|
3 | {if isset($errors) and count($errors) or isset($infos) and count($infos)} |
---|
4 | |
---|
5 | {literal} |
---|
6 | <script type="text/javascript"> |
---|
7 | $(function() { |
---|
8 | $("#divMsg").dialog({ |
---|
9 | modal: true, |
---|
10 | dialogClass: '{/literal}{if isset($errors) and count($errors)}errors{elseif isset($infos) and count($infos)}infos{/if}{literal}', |
---|
11 | buttons: { |
---|
12 | "{/literal}{'Ok'|@translate}{literal}": function() |
---|
13 | { |
---|
14 | $(this).dialog("close"); |
---|
15 | } |
---|
16 | } |
---|
17 | }); |
---|
18 | }); |
---|
19 | </script> |
---|
20 | {/literal} |
---|
21 | |
---|
22 | <div id="divMsg"> |
---|
23 | <ul> |
---|
24 | {if isset($errors) and count($errors)} |
---|
25 | {foreach from=$errors item=error} |
---|
26 | <li>{$error}</li> |
---|
27 | {/foreach} |
---|
28 | {/if} |
---|
29 | {if isset($infos) and count($infos)} |
---|
30 | {foreach from=$infos item=info} |
---|
31 | <li>{$info}</li> |
---|
32 | {/foreach} |
---|
33 | {/if} |
---|
34 | </ul> |
---|
35 | </div> |
---|
36 | |
---|
37 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.