mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed TableListField->setClick_PopupLoad() to parse ID-value out of new <td> identifiers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@59340 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6cac3fbc34
commit
92d91c0fd2
@ -407,7 +407,7 @@ JS
|
||||
* Configure this table to open a popup window
|
||||
*/
|
||||
function setClick_PopupLoad($urlBase) {
|
||||
$this->clickAction = "var w = window.open(baseHref() + '$urlBase' + this.id.replace('record-',''), 'popup'); w.focus();";
|
||||
$this->clickAction = "var w = window.open(baseHref() + '$urlBase' + this.id.replace(/.*-(\d*)$/,'$1'), 'popup'); w.focus();";
|
||||
}
|
||||
|
||||
function performReadonlyTransformation() {
|
||||
|
Loading…
Reference in New Issue
Block a user