mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge pull request #1371 from tractorcow/pulls/3.3/fix-addpage-parent
BUG Fix incorrect "Add Page" button selector
This commit is contained in:
commit
0c0c46b465
@ -161,7 +161,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
$(".cms-page-add-button").entwine({
|
||||
$(".cms-content-addpage-button").entwine({
|
||||
onclick: function(e) {
|
||||
var tree = $('.cms-tree'), list = $('.cms-list'), parentId = 0;
|
||||
|
||||
@ -173,7 +173,7 @@
|
||||
var state = list.find('input[name="Page[GridState]"]').val();
|
||||
if(state) parentId = parseInt(JSON.parse(state).ParentID, 10);
|
||||
}
|
||||
|
||||
|
||||
var data = {selector: this.data('targetPanel'),pjax: this.data('pjax')}, url;
|
||||
if(parentId) {
|
||||
extraParams = this.data('extraParams') ? this.data('extraParams') : '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user