louisremi/jquery-smartresize

Dynamically changing visit website button

Opened this issue · 0 comments

Hello your plug in is quite nice! I am using it in a project and I would like to make the visit website button appear only when there is an actual link on the href attribute. I have been trying but so far I can only make go away everything else but the "visit website button"

`
if(eldata.href == "#"){
//HERE IS WHERE THERE IS NO LINK AND WHERE I CANT REMOVE DE BUTTON
console.log("sin definir link");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}else if(eldata.href != "#"){
console.log("LINK");
this.$title.html( eldata.title );
this.$description.html( eldata.description );
this.$href.attr( 'href', eldata.href );
}


Thanks before hand !