Created
February 10, 2019 09:11
-
-
Save AlekVolsk/dfb93f87a63d30304d5c192d852f31c0 to your computer and use it in GitHub Desktop.
Установить фильтр uikit2 dinamic grid при переходе на страницу с привязкой в url?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) | |
{ | |
var loc = window.location.hash.replace('#', ''); | |
history.pushState('', document.title, window.location.pathname); | |
if (loc != '' && $(loc) && $('.tm-grid-filtering')) { | |
$('.tm-grid-filtering').attr('data-uk-grid', $('.gridClass').data('uk-grid').replace('}', ', filter:\'' + loc + '\'}')); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment