Jump to content

Add Jquery in header.tpl ---- How does it work


Recommended Posts

Hello everyone,

I would like to use function selectable of Jquery on a class CSS of category.css

 

So in category.css I made this change

.content_scene_cat .ui-selecting { background: #FECA40; }
.content_scene_cat .ui-selected { background: #F39814; color: white; }

In header tpl , I apply the function  to the class:

<script type="text/javascript">
			var baseDir = '{$content_dir}';
			var baseUri = '{$base_uri}';
			var static_token = '{$static_token}';
			var token = '{$token}';
			var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals};
			var priceDisplayMethod = {$priceDisplay};
			var roundMode = {$roundMode};
			 $(function() {$("#category.content_scene_cat").selectable();});
			
		</script>

So, have I missed something ??

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...