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
  • Offline
  • 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.059 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started