breaks functionality of widely-used javascript library Colorbox
-
Sidekick somehow breaks the $.colorbox.close() functionality from the extremely widely-use javascript library colorbox.
I made a stripped down demonstration of the problem that you can replicate. See these two short videos, the first is with sidekick running, and the second without.
https://screencast.com/t/lzHQMWDn6k
https://screencast.com/t/KREHxi4eduBelow are the console commands I entered, that you can use to replicate the issue:
jQuery("head").append("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/example1/colorbox.css' type='text/css' media='all' />"); jQuery.getScript("https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/jquery.colorbox-min.js"); jQuery.colorbox({html:'<h1>foo</h1>'}); jQuery.colorbox.close();
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘breaks functionality of widely-used javascript library Colorbox’ is closed to new replies.