Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Grid delete Task Not Confirm when linked on a field

Grid delete Task Not Confirm when linked on a field 21 Nov 2012 16:41 #5588

  • BTB300
  • BTB300's Avatar
  • Online
  • Moderator
  • Posts: 414
  • Thank you received: 130
  • Karma: 46
Hi Admin
Its been a while since i put a new ticket in (and thought you might enjoy the exercise :P )

Just Noticed when clicking the Bool Field icon in a fly view that has a delete task assigned the user is not presented with a confirm delete dialogue as expected

Cook 2.0 Build (JQuery) - Backend Item layout (not tested on front end)

Bool Field
Default True
Properties => create link ticked
Link => Task / Action = delete


When clicking on the bool field (green tick) The user is presented with Dialogue Box that says
"This page is asking you to confirm that you want to leave
- data you have entered may not be saved."

[LEAVE PAGE] [STAY ON PAGE]

Should it not present a delete confirmation Dialogue - because the task behind it is Delete?

Just a thought :)
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Grid delete Task Not Confirm when linked on a field 02 Dec 2012 15:44 #5732

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Yes, in facts.
The best in your case is to drag a delete task in the grid, and then, change the text label on it if you want a tick bool or something else.
Moved in troubleshooting.
Coding is now a piece of cake
Last Edit: 12 Oct 2013 16:43 by admin.
The administrator has disabled public write access.

Re: Grid delete Task Not Confirm when linked on a field 05 Dec 2012 06:14 #5817

  • Chipvaden
  • Chipvaden's Avatar
  • Offline
  • New Member
  • Posts: 9
  • Karma: 0
Hi, i have this problem too and not really understand this problem about security.
View in front-end only for reading not submit anything so why we can this.
This is scram to our site.
I resolve this by comment to these code line in each detail view.

//Secure the user navigation on the page, in order preserve datas.
//r holdForm = true;
//ndow.onbeforeunload = function closeIt(){ if (holdForm) return false;};

Hope this help.
The administrator has disabled public write access.

Re: Grid delete Task Not Confirm when linked on a field 05 Dec 2012 09:06 #5821

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Chipvaden wrote:
Hi, i have this problem too and not really understand this problem about security.
View in front-end only for reading not submit anything so why we can this.
This is scram to our site.
I resolve this by comment to these code line in each detail view.

//Secure the user navigation on the page, in order preserve datas.
//r holdForm = true;
//ndow.onbeforeunload = function closeIt(){ if (holdForm) return false;};

Hope this help.

Ok, right, but it is out of topic.

Your solution you propose is to avoid the message asking confirmation for leaving the page without task buttons. (refresh, previous, next or url link)
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.156 seconds

Get Started