mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed js accessor (thanks AngryPHPNerd)
This commit is contained in:
parent
5911abc0f6
commit
af4cf3ccc4
@ -4,7 +4,7 @@
|
||||
Behaviour.register({
|
||||
'div.inlineformaction input#$ID': {
|
||||
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({
|
||||
'url': url,
|
||||
|
Loading…
Reference in New Issue
Block a user