Simplifiying balancing view part 2. Lets call it finished.
This commit is contained in:
parent
dc0d1b3e46
commit
af3c07f031
26 changed files with 185 additions and 219 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue