schmunk42 / yii-backend-theme

Yii Framework Theme for Application Backend
1 stars 2 forks source link

a workaround so that the edit button has a cursor without using the frag... #2

Closed damiandennis closed 11 years ago

damiandennis commented 11 years ago

just a simple fix so that the edit page shows as a pointer, alternatively this could have been done in css but I had a bit of trouble figuring out the structure of how it all pieces together.

schmunk42 commented 11 years ago

Does the page jumps to top with this fix or is this prevented by the javascript? I removed the # once because of this.

A CSS solution would be nicer IMHO.

damiandennis commented 11 years ago

The javascript prevents it jumping as it returns false on the onclick event. I think its fairly standard to always have a href with a hash and just have javascript return false. I will leave that up to you to decide though.

schmunk42 commented 11 years ago

Thanks!