Sha256: 2da04d2b00d8e8c7dffb33b361004f9133a059b6e1ed6bcc03fbae03a1a81a2f

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

(function ($) {
  var widgets = $();

  $(document).on('page:before-unload', function store() {
    if (!widgets.length) {
      widgets = $('#kf5-support-123456789');
      if (widgets.length) {
        widgets = $([widgets[0], widgets.prev()[0], widgets.prev().prev()[0]]);
      }
    }
  });

  $(document).on('page:load', function (argument) {
    $('body').append(widgets);
  });
})(jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kf5-0.4.0 app/assets/javascripts/kf5.turbolinks.js