mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed js accessor (thanks AngryPHPNerd)
This commit is contained in:
parent
5911abc0f6
commit
af4cf3ccc4
@ -4,7 +4,7 @@
|
|||||||
Behaviour.register({
|
Behaviour.register({
|
||||||
'div.inlineformaction input#$ID': {
|
'div.inlineformaction input#$ID': {
|
||||||
onclick: function() {
|
onclick: function() {
|
||||||
var url = jQuery('base').attr('href') + 'admin-custom/' + this.name.substring(7) + '?ID=' + jQuery('#Form_EditForm_ID').value + '&ajax=1';
|
var url = jQuery('base').attr('href') + 'admin-custom/' + this.name.substring(7) + '?ID=' + document.getElementById('Form_EditForm_ID').value + '&ajax=1';
|
||||||
|
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
'url': url,
|
'url': url,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user