mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
commit
4462eec7fa
@ -55,6 +55,10 @@
|
|||||||
}
|
}
|
||||||
selectedEl.setSelected(true);
|
selectedEl.setSelected(true);
|
||||||
selectedEl.siblings().setSelected(false);
|
selectedEl.siblings().setSelected(false);
|
||||||
|
|
||||||
|
// Disable the "Create" button if none of the pagetypes are available
|
||||||
|
var buttonState = (this.find('#PageType li:not(.disabled)').length) ? 'enable' : 'disable';
|
||||||
|
this.find('button[name=action_doAdd]').button(buttonState);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user