vForums Support > vForums :: Report a Bug :: Resolved Bugs :: > Stick/Unsticky

Stick/Unsticky - Posted By Dreg[Bot] (dregondrahl) on 9th Jan 08 at 6:00am
On this page, when you sticky something it confirms and converts the button to unsticky, but...it doesn't unsticky the topic.

Now refresh the stickied page and try the unstick button, it works, but the image won't change and when you click again you get a JS error.


Yes, i click the sticky/unsticky over and over again for fun.

Re: Stick/Unsticky - Posted By Ross (admin) on 9th Jan 08 at 9:34am
What's "This Page" supposed to refer to? And what browser are you using.

Re: Stick/Unsticky - Posted By Michael (wrighty) on 9th Jan 08 at 4:06pm
view thread page! {Smile}

Re: Stick/Unsticky - Posted By Dreg[Bot] (dregondrahl) on 9th Jan 08 at 5:08pm
Yupyup, this page as in this posts viewing page
And me using FireFox {Smile}

Re: Stick/Unsticky - Posted By Ross (admin) on 9th Jan 08 at 5:46pm
OK, I see what you mean now. Same is happening in IE. Not sure of the cause but I'll look at it some more later.

Re: Stick/Unsticky - Posted By Dreg[Bot] (dregondrahl) on 9th Jan 08 at 11:40pm
From what i'm seeing its not liking the eval() part much. I THINK. i'm not sure i haven't tested, tho im wondering why you append the script for sticky and unsticky, can't they be one function with a varaiable to switch the images and onclick? then you could use it for Announcements too.

Re: Stick/Unsticky - Posted By Ross (admin) on 9th Jan 08 at 11:49pm
 
From what i'm seeing its not liking the eval() part much. I THINK. i'm not sure i haven't tested, tho im wondering why you append the script for sticky and unsticky, can't they be one function with a varaiable to switch the images and onclick? then you could use it for Announcements too.


I may just rewrite the entire AJAX section to optimize it and prepare it for the next level of AJAX features. Might be easier.

Re: Stick/Unsticky - Posted By Dreg[Bot] (dregondrahl) on 9th Jan 08 at 11:54pm
Aye ! {Cheesy}

Also i noticed the Poll and check messages length code is in the functions, might as well put in the add_ubbc() function too, so then if people later make codes that will have UBBC it will be available globally. Maybe even a get_id() function? I mean everything has ID s after all.

{Lips Sealed} i'll save them for suggestions tho XD