| 1 | Index: /Users/jakehiller/Sites/ymca/plugins/apostrophePlugin/modules/a/templates/_slot.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- /Users/jakehiller/Sites/ymca/plugins/apostrophePlugin/modules/a/templates/_slot.php (revision 1587) |
|---|
| 4 | +++ /Users/jakehiller/Sites/ymca/plugins/apostrophePlugin/modules/a/templates/_slot.php (working copy) |
|---|
| 5 | @@ -80,7 +80,8 @@ |
|---|
| 6 | |
|---|
| 7 | // CANCEL |
|---|
| 8 | $('#a-slot-form-cancel-<?php echo $id ?>').click(function(){ |
|---|
| 9 | $(view).children('.a-slot-content').children('.a-slot-content-container').fadeIn(); |
|---|
| 10 | $(view).children('.a-controls-item variant').fadeIn(); |
|---|
| 11 | $(view).children('.a-slot-content').children('.a-slot-form').hide(); |
|---|
| 12 | $(view).find('.editing-now').removeClass('editing-now'); |
|---|
| 13 | $(view).parents('.a-area.editing-now').removeClass('editing-now').find('.editing-now').removeClass('editing-now'); // for singletons |
|---|
| 14 | }); |
|---|
| 15 | |
|---|
| 16 | // SAVE |
|---|
| 17 | $('#a-slot-form-submit-<?php echo $id ?>').click(function(){ |
|---|
| 18 | $(this).parents('.a-slot').find('.a-slot-controls .edit').removeClass('editing-now'); |
|---|
| 19 | $(this).parents('.a-area.editing-now').removeClass('editing-now').find('.a-area-controls .edit').removeClass('editing-now'); // for singletons |
|---|
| 20 | + $(this).parents('.a-slot').removeClass('editing-now'); |
|---|
| 21 | window.apostrophe.callOnSubmit('<?php echo $id ?>'); |
|---|
| 22 | return true; |
|---|
| 23 | }); |
|---|