Consolidate event handlers.
(I don't remember why this was in a seperate event handler, but we don't need it to be anymore.) References #85
This commit is contained in:
parent
26088f8ba5
commit
1375d12a08
@ -1177,7 +1177,7 @@ $(function() {
|
||||
}
|
||||
|
||||
// Show media file info, template info, label info or filters
|
||||
$('.media_show_info, .template_show_info, .filters_toolbar li > a').click(function(e) {
|
||||
$('.media_show_info, .template_show_info, .filters_toolbar li > a, .toggle_info').click(function(e) {
|
||||
var $el = $(this);
|
||||
if ($el.attr('href')) {
|
||||
$($el.attr('href')).toggleClass('additional_info');
|
||||
@ -1188,15 +1188,6 @@ $(function() {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('.toggle_info').click(function(e) {
|
||||
if ($(this).attr('href')) {
|
||||
$($(this).attr('href')).toggleClass('additional_info');
|
||||
} else {
|
||||
$($(this).data('href')).toggleClass('additional_info');
|
||||
}
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Show further links
|
||||
{if $use_popups}
|
||||
if($('#dashboard').length > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user