// Fix warning
This commit is contained in:
1 parent
7b14759aec
commit
ae760115be
2 files changed
+6
-6
No files matched your search
@@ -70,8 +70,8 @@
|
|||||||
{if count($warnings) > 1}
|
{if count($warnings) > 1}
|
||||||
{l s='There are %d warnings.' sprintf=count($warnings)}
|
{l s='There are %d warnings.' sprintf=count($warnings)}
|
||||||
<span id="labelSeeMore">
|
<span id="labelSeeMore">
|
||||||
<a id="linkSeeMore" href="#" style="text-decoration:underline">{l s='Click here to see more'}</a>
|
<a id="linkSeeMore" href="#" class="btn btn-default"><i class="icon-plus-sign-alt"></i> {l s='Click here to see more'}</a>
|
||||||
<a id="linkHide" href="#" style="text-decoration:underline;display:none">{l s='Hide warning'}</a>
|
<a id="linkHide" href="#" class="btn btn-default" style="display:none"><i class="icon-minus-sign-alt"></i> {l s='Hide warning'}</a>
|
||||||
</span>
|
</span>
|
||||||
<ul {if count($warnings) > 1}style="display:none;"{/if} id="seeMore" class="list-unstyled">
|
<ul {if count($warnings) > 1}style="display:none;"{/if} id="seeMore" class="list-unstyled">
|
||||||
{foreach $warnings as $warning}
|
{foreach $warnings as $warning}
|
||||||
|
|||||||
+4
-4
@@ -48,16 +48,16 @@ $(document).ready(function(){
|
|||||||
// if count warnings
|
// if count warnings
|
||||||
$('#linkSeeMore').live('click', function(e){
|
$('#linkSeeMore').live('click', function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('.warn #seeMore').show();
|
$('#seeMore').show();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$('.warn #linkHide').show();
|
$('#linkHide').show();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#linkHide').live('click', function(e){
|
$('#linkHide').live('click', function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('.warn #seeMore').hide();
|
$('#seeMore').hide();
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
$('.warn #linkSeeMore').show();
|
$('#linkSeeMore').show();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#hideWarn').live('click', function(e){
|
$('#hideWarn').live('click', function(e){
|
||||||
|
|||||||
Reference in new issue
Block a user