параметр ротации
Posted: Wed Dec 11, 2013 5:42 pm
Перестал срабатывать параметр ротации если использовать эту фичу
<script type="text/javascript" src="/scj/includes/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a').each(function(){
if ($(this).attr('rot_id')) {
$(this).bind('click', function(){
$(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
$(this).unbind('click');
});
}
});
});
</script>
не могу точно сказать после какого именно апдейта, как вернуть параметр ротации чтобы работали подобные ссылки?
href="/gallery/<!--GALLERY_SLUG-->/index.html" rot_id="<!--THUMB_LINK-->"
<script type="text/javascript" src="/scj/includes/js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a').each(function(){
if ($(this).attr('rot_id')) {
$(this).bind('click', function(){
$(this).attr('href', $(this).attr('href')+ '?' + $(this).attr('rot_id'));
$(this).unbind('click');
});
}
});
});
</script>
не могу точно сказать после какого именно апдейта, как вернуть параметр ротации чтобы работали подобные ссылки?
href="/gallery/<!--GALLERY_SLUG-->/index.html" rot_id="<!--THUMB_LINK-->"