|
@@ -569,22 +569,23 @@
|
|
});
|
|
});
|
|
|
|
|
|
$('.remove-section-trigger').click(function() {
|
|
$('.remove-section-trigger').click(function() {
|
|
- $.post('/api/section/deactivate', {
|
|
|
|
- uid: $(this).attr('data-uid'),
|
|
|
|
- memo: 'Deactivated from note',
|
|
|
|
- }, function(_data) {
|
|
|
|
- if(_data) {
|
|
|
|
- if(_data.success) {
|
|
|
|
- fastReload();
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- toastr.error(_data.message);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- toastr.error('Unable to remove section!');
|
|
|
|
- }
|
|
|
|
- }, 'json');
|
|
|
|
|
|
+ // $.post('/api/section/deactivate', {
|
|
|
|
+ // uid: $(this).attr('data-uid'),
|
|
|
|
+ // memo: 'Deactivated from note',
|
|
|
|
+ // }, function(_data) {
|
|
|
|
+ // if(_data) {
|
|
|
|
+ // if(_data.success) {
|
|
|
|
+ // fastReload();
|
|
|
|
+ // }
|
|
|
|
+ // else {
|
|
|
|
+ // toastr.error(_data.message);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // else {
|
|
|
|
+ // toastr.error('Unable to remove section!');
|
|
|
|
+ // }
|
|
|
|
+ // }, 'json');
|
|
|
|
+ $(this).closest('.note-section').removeClass('edit');
|
|
return false;
|
|
return false;
|
|
});
|
|
});
|
|
|
|
|