// javascript for warnings and errors message are now in footer.tpl
This commit is contained in:
@@ -89,8 +89,41 @@
|
||||
}
|
||||
});
|
||||
}); // end bind
|
||||
});
|
||||
|
||||
|
||||
// if count errors
|
||||
$('#hideError').live('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
$('.error').hide('slow', function (){
|
||||
$('.error').remove();
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
// if count warnings
|
||||
$('#linkSeeMore').live('click', function(e){
|
||||
e.preventDefault();
|
||||
$('#seeMore').show('slow');
|
||||
$(this).hide();
|
||||
$('#linkHide').show();
|
||||
return false;
|
||||
});
|
||||
$('#linkHide').live('click', function(e){
|
||||
e.preventDefault();
|
||||
$('#seeMore').hide('slow');
|
||||
$(this).hide();
|
||||
$('#linkSeeMore').show();
|
||||
return false;
|
||||
});
|
||||
$('#hideWarn').live('click', function(e){
|
||||
e.preventDefault();
|
||||
$('.warn').hide('slow', function (){
|
||||
$('.warn').remove();
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user