We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5e371 commit 4ad955aCopy full SHA for 4ad955a
openlibrary/components/ObservationForm/Utils.js
@@ -8,6 +8,12 @@ export function decodeAndParseJSON(str) {
8
return JSON.parse(decodeURIComponent(str));
9
}
10
11
+/*
12
+ window.$ is a jQuery object
13
+ window.$.colorbox is a jQuery plugin
14
+*/
15
export function resizeColorbox() {
- window.$.colorbox.resize();
16
+ if (window.$ && window.$.colorbox && typeof window.$.colorbox.resize === 'function') {
17
+ window.$.colorbox.resize();
18
+ }
19
0 commit comments