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.

Open a widget from another widget
#7
(03.12.2019, 07:30)admin Wrote: Try installing 2019 RC1 firmware, positioning work correctly for me in this version. If you need multiple widgets it's better to use different classes (static-widget1 and static-widget2). Transitions will not work.

Code:
$(function() {
  var w1 = $('#widget-2').removeClass('layer').css('position', 'absolute');
  var w2 = $('#widget-4').removeClass('layer').css('position', 'absolute');
 
  $(document.body).on('showplan', function() {
    w1.removeClass('force-show');
    w2.removeClass('force-show');
  });
 
  $('.static-widget1').on('vclick', function() {
    w2.removeClass('force-show');
    w1.toggleClass('force-show', !w1.hasClass('hide'));
    hideWidgets();
  });

  $('.static-widget2').on('vclick', function() {
    w1.removeClass('force-show');
    w2.toggleClass('force-show', !w2.hasClass('hide'));
    hideWidgets();
  });
});
effectively! the problem is corrected with the new version of firm. Anyway, the effect of page transition continues to affect the widget, I do not mind removing it, but in case you want to take it into account in the next update.

Thank you very much
Reply


Messages In This Thread
RE: Open a widget from another widget - by davidchispas - 03.12.2019, 08:50

Forum Jump: