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:
Ingo Schommer 2008-07-29 02:23:54 +00:00
parent 6cac3fbc34
commit 92d91c0fd2

View File

@ -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() {