mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX minInnerWidth should begin with upper-case M
This commit is contained in:
parent
9526e13e5c
commit
2b2e13f7df
@ -88,13 +88,13 @@
|
|||||||
* see LeftAndMain.Panel.js for base behaviour
|
* see LeftAndMain.Panel.js for base behaviour
|
||||||
*/
|
*/
|
||||||
$('.blog-admin-sidebar.cms-panel').entwine({
|
$('.blog-admin-sidebar.cms-panel').entwine({
|
||||||
minInnerWidth: 620,
|
MinInnerWidth: 620,
|
||||||
onadd: function() {
|
onadd: function() {
|
||||||
this._super();
|
this._super();
|
||||||
this.updateLayout();
|
this.updateLayout();
|
||||||
|
|
||||||
// If this panel is open and the left hand column is smaller than the minimum, contract it instead
|
// If this panel is open and the left hand column is smaller than the minimum, contract it instead
|
||||||
if(!this.hasClass('collapsed') && ($(".blog-admin-outer").width() < this.getminInnerWidth())) {
|
if(!this.hasClass('collapsed') && ($(".blog-admin-outer").width() < this.getMinInnerWidth())) {
|
||||||
this.collapsePanel();
|
this.collapsePanel();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user