small bug fixed for auto scroll
This commit is contained in:
parent
a87df693bf
commit
e8b90639c6
|
@ -229,6 +229,7 @@ $(document).ready(function(){
|
||||||
if(window.location.hash != ""){
|
if(window.location.hash != ""){
|
||||||
var item = window.location.hash.replace("#","");
|
var item = window.location.hash.replace("#","");
|
||||||
el = $("div[data-scroll-id=" + item + "]");
|
el = $("div[data-scroll-id=" + item + "]");
|
||||||
|
if(el.length > 0){
|
||||||
$('html, body').scrollTop(el.offset().top - 100);
|
$('html, body').scrollTop(el.offset().top - 100);
|
||||||
el.addClass("scroll-element");
|
el.addClass("scroll-element");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -245,6 +246,7 @@ $(document).ready(function(){
|
||||||
el.css('border-color', 'transparent');
|
el.css('border-color', 'transparent');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$(".member_tags").select2({
|
$(".member_tags").select2({
|
||||||
formatResult: function (el) {
|
formatResult: function (el) {
|
||||||
|
|
Loading…
Reference in New Issue