mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Move bulk uploader before the gridfield table
This commit is contained in:
parent
c4ae2fdab2
commit
dcde5cc7e6
@ -4,25 +4,6 @@
|
||||
|
||||
$.entwine('colymba', function($) {
|
||||
|
||||
/**
|
||||
* Makes sure the component is at the top :)
|
||||
*/
|
||||
$('.bulkUploader').entwine({
|
||||
onmatch: function(){
|
||||
var $tr = this.parents('thead').find('tr'),
|
||||
$component = this.clone(),
|
||||
index = $tr.index(this)
|
||||
;
|
||||
if ( index > 1 )
|
||||
{
|
||||
$component.insertAfter($tr.eq(0));
|
||||
this.remove();
|
||||
}
|
||||
},
|
||||
onunmatch: function(){}
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Track upload progress...
|
||||
*/
|
||||
|
@ -390,7 +390,7 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
|
||||
Requirements::add_i18n_javascript('colymba/gridfield-bulk-editing-tools:lang');
|
||||
|
||||
return array(
|
||||
'header' => $data->renderWith('Colymba\\BulkUpload\\BulkUploader'),
|
||||
'before' => $data->renderWith('Colymba\\BulkUpload\\BulkUploader'),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
<tr class="bulkUploader">
|
||||
<th class="" colspan="$Colspan">
|
||||
<div class="bulkUploader">
|
||||
$UploadField
|
||||
$Finish
|
||||
</th>
|
||||
</tr>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user