Skip to content

Commit 771be8c

Browse files
author
Andrew Dunn
authored
Merge pull request #1 from silverstripe-superchargers/bugfix/exposefix
ss4upgrade: Fixed loading of resources in CMS
2 parents 35fe489 + f3e93e5 commit 771be8c

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
"silverstripe/framework": "^4",
1212
"silverstripe/cms": "^4"
1313
},
14-
"expose": [
15-
"css",
16-
"javascript"
17-
]
14+
"extra": {
15+
"expose": [
16+
"css",
17+
"javascript"
18+
]
19+
}
1820
}

javascript/ImageSelect.jquery.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@
185185
}
186186
});
187187
});
188-
this.trigger('chosen:hiding_dropdown');
188+
189+
if (typeof $this !== 'undefined') {
190+
$this.trigger('chosen:hiding_dropdown');
191+
}
192+
189193
return ret;
190194
}
191195
});

0 commit comments

Comments
 (0)