You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since jQuery 1.9 toggle function is removed. Threfore we have to write own and replace toggle in supersized.shutter.js:
Before theme Object in supersized.shutter.js Line 16:
// REPLACEMENT for .toggle since jQuery 1.9
// place this before all of your code, outside of document ready.
// EXAMLPE: http://jsfiddle.net/2f8nZ/
/*
function odd() {
alert("odd");
}
function even() {
alert("even");
}
$("#mydiv").clicktoggle(even, odd);
*/
// https://forum.jquery.com/topic/beginner-function-toggle-deprecated-what-to-use-instead
$.fn.clicktoggle = function(a, b) {
return this.each(function() {
var clicked = false;
$(this).click(function() {
if (clicked) {
clicked = false;
return b.apply(this, arguments);
}
clicked = true;
return a.apply(this, arguments);
});
});
}
Does not find the Error.
Does anyone have a solution?
The text was updated successfully, but these errors were encountered: