This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Closing popup sliders
#3
The slider will hide if you click inside the widget. Add this to Custom JavaScript to change the behavior so clicking anywhere won't hide a widget if there's an open control (slider or any other):
Code:
if (window.hideControls) {
  var hidecontrols = window.hideControls
    , hidewidgets = window.hideWidgets
    , hidden;

  window.hideControls = function() {
    hidden = $E.controls.filter('.show').length > 0;
    hidecontrols();

    setTimeout(function() {
      hidden = false;
    }, 10);
  }

  window.hideWidgets = function() {
    if (!hidden) {
      hidewidgets();
    }
  }
}
Reply


Messages In This Thread
Closing popup sliders - by tassiebean - 20.02.2023, 03:17
RE: Closing popup sliders - by Daniel - 20.02.2023, 08:27
RE: Closing popup sliders - by tassiebean - 20.02.2023, 12:06
RE: Closing popup sliders - by admin - 20.02.2023, 08:28
RE: Closing popup sliders - by tassiebean - 20.02.2023, 11:59
RE: Closing popup sliders - by admin - 20.02.2023, 12:01
RE: Closing popup sliders - by Daniel - 20.02.2023, 12:56
RE: Closing popup sliders - by tassiebean - 20.02.2023, 13:40
RE: Closing popup sliders - by Daniel - 20.02.2023, 14:05
RE: Closing popup sliders - by admin - 20.02.2023, 14:14
RE: Closing popup sliders - by tassiebean - 21.02.2023, 05:49

Forum Jump: