I have a jQuery UI dialog on a page of mine. The "X" in the upper right-hand corner is made possible by this little piece of CSS:
.ui-widget-header .ui-icon {
background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/;
}
The problem is that that doesn't work. It only works when I add a leading slash like this:
.ui-widget-header .ui-icon {
background-image: url(/images/ui-icons_222222_256x240.png)/*{iconsHeader}*/;
}
I know I could just make this change in the jQuery UI files, but that doesn't seem right. It seems hacky, plus, when I upgrade to a newer version of jQuery UI, all my changes will get blown away.
How can I make my jQuery UI images work? I don't know if the fact that I'm using Symfony2 matters here but I thought I'd mention it just in case.