Revert "Moved to a vendor module #103"

This reverts commit 08a0781d56.
This commit is contained in:
UndefinedOffset 2017-10-27 16:09:42 -03:00
parent 5dc5bbc908
commit 1925d5151e
3 changed files with 6 additions and 11 deletions

View File

@ -19,4 +19,4 @@ before_script:
- cd ~/builds/ss
script:
- vendor/bin/phpunit vendor/undefinedoffset/sortablegridfield/tests
- vendor/bin/phpunit sortablegridfield/tests

View File

@ -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"
}

View File

@ -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);