mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Merge pull request #179 from oilee80/master
Fix for Exception namespace & CSS image move
This commit is contained in:
commit
24057fe79a
@ -154,7 +154,7 @@
|
||||
width: 5px;
|
||||
height: 11px;
|
||||
margin: -5px 0 0 -2px;
|
||||
background-image: url('../../framework/thirdparty/jquery-ui-themes/smoothness/images/ui-icons_222222_256x240.png');
|
||||
background-image: url('../../framework/admin/thirdparty/jquery-ui-themes/smoothness/images/ui-icons_222222_256x240.png');
|
||||
background-position: -5px -227px;
|
||||
}
|
||||
|
||||
|
@ -239,9 +239,9 @@
|
||||
var btn = this.parents(".ss-gridfield-add-new-multi-class").find(".ss-ui-button");
|
||||
|
||||
if(this.val() && this.val().length) {
|
||||
btn.button("enable");
|
||||
btn.button().button("enable");
|
||||
} else {
|
||||
btn.button("disable");
|
||||
btn.button().button("disable");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -41,7 +41,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $itemRequestClass = 'SilverStripe\\Forms\\GridField\\GridFieldAddNewMultiClassHandler';
|
||||
protected $itemRequestClass = 'SilverStripe\\GridFieldExtensions\\GridFieldAddNewMultiClassHandler';
|
||||
|
||||
/**
|
||||
* @param string $fragment the fragment to render the button in
|
||||
|
@ -196,7 +196,7 @@ class GridFieldOrderableRows extends RequestHandler implements
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception("Couldn't find the sort field '$field'");
|
||||
throw new \Exception("Couldn't find the sort field '$field'");
|
||||
}
|
||||
|
||||
public function getURLHandlers($grid)
|
||||
|
Loading…
Reference in New Issue
Block a user