mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
parent
5dc5bbc908
commit
1925d5151e
@ -19,4 +19,4 @@ before_script:
|
||||
- cd ~/builds/ss
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit vendor/undefinedoffset/sortablegridfield/tests
|
||||
- vendor/bin/phpunit sortablegridfield/tests
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "undefinedoffset/sortablegridfield",
|
||||
"description": "Adds drag and drop functionality to SilverStripe 4.x's GridField",
|
||||
"type": "silverstripe-vendormodule",
|
||||
"type": "silverstripe-module",
|
||||
"keywords": ["silverstripe", "gridfield"],
|
||||
"license": "BSD-3-Clause",
|
||||
"authors": [
|
||||
@ -13,8 +13,7 @@
|
||||
],
|
||||
"require": {
|
||||
"silverstripe/framework": "~4.0",
|
||||
"silverstripe/versioned": "^1.0",
|
||||
"silverstripe/vendor-plugin": "^1.0"
|
||||
"silverstripe/versioned": "^1.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@ -27,10 +26,6 @@
|
||||
},
|
||||
"extra": {
|
||||
"installer-name": "sortablegridfield",
|
||||
"expose": [
|
||||
"css",
|
||||
"javascript"
|
||||
],
|
||||
"branch-alias": {
|
||||
"dev-master": "2.0.x-dev"
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ use SilverStripe\ORM\SS_List;
|
||||
use SilverStripe\ORM\UnsavedRelationList;
|
||||
use SilverStripe\ORM\ValidationException;
|
||||
use SilverStripe\Versioned\Versioned;
|
||||
use SilverStripe\View\ArrayData;
|
||||
use SilverStripe\View\arrayData;
|
||||
use SilverStripe\View\Requirements;
|
||||
|
||||
/**
|
||||
@ -132,8 +132,8 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
$custom = Config::inst()->get(GridFieldSortableRows::class, 'Base');
|
||||
$base = $custom ?: SORTABLE_GRIDFIELD_BASE;
|
||||
|
||||
Requirements::css('undefinedoffset/sortablegridfield:css/GridFieldSortableRows.css');
|
||||
Requirements::javascript('undefinedoffset/sortablegridfield:javascript/GridFieldSortableRows.js');
|
||||
Requirements::css($base . '/css/GridFieldSortableRows.css');
|
||||
Requirements::javascript($base . '/javascript/GridFieldSortableRows.js');
|
||||
|
||||
$args = array('Colspan' => count($gridField->getColumns()), 'ID' => $gridField->ID(), 'DisableSelection' => $this->disable_selection);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user