mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Removed save+finish btn
This commit is contained in:
parent
bc8f2bda59
commit
2bfd2a8309
@ -75,7 +75,7 @@ class GridFieldBulkManager_Request extends RequestHandler {
|
|||||||
->setAttribute('data-url', $this->Link('update'))
|
->setAttribute('data-url', $this->Link('update'))
|
||||||
->setUseButtonTag(true)
|
->setUseButtonTag(true)
|
||||||
);
|
);
|
||||||
|
/*
|
||||||
if($crumbs && $crumbs->count()>=2)
|
if($crumbs && $crumbs->count()>=2)
|
||||||
{
|
{
|
||||||
$actions->push(
|
$actions->push(
|
||||||
@ -87,7 +87,7 @@ class GridFieldBulkManager_Request extends RequestHandler {
|
|||||||
->setAttribute('data-return-url', $one_level_up->Link)
|
->setAttribute('data-return-url', $one_level_up->Link)
|
||||||
->setUseButtonTag(true)
|
->setUseButtonTag(true)
|
||||||
);
|
);
|
||||||
}
|
} */
|
||||||
|
|
||||||
$actions->push(
|
$actions->push(
|
||||||
FormAction::create('Cancel', 'Cancel & Delete All')
|
FormAction::create('Cancel', 'Cancel & Delete All')
|
||||||
|
@ -163,7 +163,7 @@
|
|||||||
$(form).addClass('hasUpdate');
|
$(form).addClass('hasUpdate');
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#bulkEditingUpdateFinishBtn').addClass('dirty');
|
//$('#bulkEditingUpdateFinishBtn').addClass('dirty');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -206,13 +206,14 @@
|
|||||||
$(this).removeClass('hasUpdate');
|
$(this).removeClass('hasUpdate');
|
||||||
|
|
||||||
if ( counter == totalForms ) {
|
if ( counter == totalForms ) {
|
||||||
$('#bulkEditingUpdateFinishBtn').removeClass('dirty');
|
//$('#bulkEditingUpdateFinishBtn').removeClass('dirty');
|
||||||
$('#bulkEditingUpdateBtn').data('completedForms', 0);
|
$('#bulkEditingUpdateBtn').data('completedForms', 0);
|
||||||
$('#bulkEditingUpdateBtn').removeClass('loading');
|
$('#bulkEditingUpdateBtn').removeClass('loading');
|
||||||
|
/*
|
||||||
if ( $('#bulkEditingUpdateBtn').hasClass('doFinish') ) {
|
if ( $('#bulkEditingUpdateBtn').hasClass('doFinish') ) {
|
||||||
//@TODO find a way to pass this as CMS navigation through AJAX
|
//@TODO find a way to pass this as CMS navigation through AJAX
|
||||||
window.location = $('#bulkEditingUpdateFinishBtn').data('return-url');
|
window.location = $('#bulkEditingUpdateFinishBtn').data('return-url');
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -220,7 +221,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
$('#bulkEditingUpdateFinishBtn').entwine({
|
$('#bulkEditingUpdateFinishBtn').entwine({
|
||||||
onclick: function(e){
|
onclick: function(e){
|
||||||
if ( $(this).hasClass('dirty') ) {
|
if ( $(this).hasClass('dirty') ) {
|
||||||
@ -229,7 +230,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user