⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

unset_js and unset_css



mrtakdnz
  • profile picture
  • Member

Posted 29 June 2012 - 22:42 PM

Hi, when i'm using grocery_crud sometimes i need to unset spesific js and css files (especially jquery and jqueryui)
For ex, on list pages jquery-ui won't loaded. And i want to use another jquery-ui theme file.
also i don't want to edit template because of updates. is there any unset_js or unset_css function for disable loading of these files?

Thanks in advance.

mrtakdnz
  • profile picture
  • Member

Posted 15 September 2012 - 23:29 PM

i need to bring back to life this post :) i need help.

Thanks much...

midnigther
  • profile picture
  • Member

Posted 16 September 2012 - 18:56 PM

You can extend the Grocery Crud class and add a method to unset the array index from $js_files and $css_files.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 16 September 2012 - 22:01 PM

For now there is only the

$crud->unset_jquery();

but in the future I want also to add the:

$crud->unset_jquery_ui();

for situations similar to yours

mrtakdnz
  • profile picture
  • Member

Posted 17 September 2012 - 09:58 AM

awesome, unset jqueryui will be great. I'll so appreciated for this update. maybe unset_js('filename.js') or unset_css('filename.css') will be great. bun unset jqui is great too. Thanks so much.