Simplifiying balancing view part 2. Lets call it finished.

This commit is contained in:
benni 2012-07-27 18:03:46 +02:00
parent dc0d1b3e46
commit af3c07f031
26 changed files with 185 additions and 219 deletions

View file

@ -2,13 +2,13 @@
$(function() {
// Show/Hide a specific DOM element
$('a[data-toggle-this]').click(function() {
$('a[data-toggle-this]').live('click', function() {
$($(this).data('toggle-this')).toggle();
return false;
});
// Remove this item from DOM
$('a[data-remove-this').click(function() {
$('a[data-remove-this]').live('click', function() {
$($(this).data('remove-this')).remove();
return false;
});