Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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 following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

Last edit: by admin.

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

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.

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986

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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.058 seconds

I'm playing around with the new mvc and the FORK feature is FANTASTIC!!! it's saving me a lot of time! you are doing a very good job!!

Tomaselli (Forum)  

Get Started