Permalink
Browse files

BUGFIX Make sure it's possible to rename the module's directory witho…

…ut breaking things.
  • Loading branch information...
1 parent acc1ab1 commit 62e171a4e3b504e01f9a1d6a1fb515d45ed50c6c @drzax drzax committed Oct 1, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −2 _config.php
  2. +2 −2 code/forms/GridFieldSortableRows.php
View
@@ -1,3 +1,2 @@
<?php
-
-?>
+define('SORTABLE_GRIDFIELD_BASE', Director::absoluteBaseURL() . basename(dirname(__FILE__)));
@@ -73,8 +73,8 @@ public function getHTMLFragments($gridField) {
//Inject Requirements
- Requirements::css('SortableGridField/css/GridFieldSortableRows.css');
- Requirements::javascript('SortableGridField/javascript/GridFieldSortableRows.js');
+ Requirements::css(SORTABLE_GRIDFIELD_BASE . '/css/GridFieldSortableRows.css');
+ Requirements::javascript(SORTABLE_GRIDFIELD_BASE . '/javascript/GridFieldSortableRows.js');
$args = array('Colspan' => count($gridField->getColumns()), 'ID' => $gridField->ID());

0 comments on commit 62e171a

Please sign in to comment.