Add, edit, delete and back to list confirmation
- Single Page
Posted 30 June 2012 - 00:08 AM
How can I disable the confirmation message, except for delete action?
Thanks again!
Posted 30 June 2012 - 00:56 AM
Posted 30 June 2012 - 01:26 AM
Actually is not about confirming. Is when you hit "Cancel" or "Back to List" button.
Posted 30 June 2012 - 02:44 AM
Edit files:
assets\grocery_crud hemes\flexigrid\views\add.php
assets\grocery_crud hemes\flexigrid\views\edit.php
Around line 21 you'll see this:
<a href='<?php echo $list_url?>' onclick='javascript: return goToList()' ><?php echo $this->l('form_back_to_list'); ?></a>
Change to this:
<a href='<?php echo $list_url?>'><?php echo $this->l('form_back_to_list'); ?></a>
This will remove the confirm for the back to list link.
Now around line 71 of the same files change this code:
<input type='button' value='<?php echo $this->l('form_cancel'); ?>' onclick='javascript: return goToList()' />
to this:
<input type='button' value='<?php echo $this->l('form_cancel'); ?>' />
This should remove the prompt for the cancel button.
I haven't tested yet so please let me know if it worked for you.
Boa sorte
Posted 30 June 2012 - 14:19 PM
I think I"ll just let the messages as it is. I don't like the idea of doing changes on the grocery crud core. But I would suggest, in case web-johnny see this post, that this kind of feature could be configurable in the future versions.