⚠ 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

adding javascript prompt box to add_action



livewire
  • profile picture
  • Member

Posted 16 January 2013 - 12:23 PM

i have a custom action that allows the user to revert back the changes.

$crud->add_action('Revert', base_url().'assets/img/revert.png', 'action/revert');


How can i add a Javascript prompt for this action so when the user clicks he will have an option to continue or cancel?

victor
  • profile picture
  • Member

Posted 16 January 2013 - 13:00 PM

I think you should change the view file.

livewire
  • profile picture
  • Member

Posted 16 January 2013 - 13:04 PM

do i have to change anything in the crud files or just my view? i have only the below code in my view



<div id="tabsjqui-4">
<?php echo $output->output;?>
</div>

victor
  • profile picture
  • Member

Posted 16 January 2013 - 15:39 PM

have a look at directory 'assets/grocery_crud'. The library has some themes in this folder.


zrmba
  • profile picture
  • Member

Posted 21 January 2013 - 22:29 PM

Why don't you try to fancybox-it? by simply manipulating the id name of your div?

winstongel
  • profile picture
  • Member

Posted 10 April 2015 - 07:28 AM

Try.....Javascript Prompt box

 

Winston