⚠ 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

Save/Update and go back to list button doesn't work



vardas

vardas
  • profile picture
  • Member

Posted 11 July 2015 - 14:02 PM

On my Grocerycrud Add page the 'Save/Update and go back to list button' doesn't do anything.

The 'Save' button works but the success page seems to have something wrong with the link it shows:
 

{"success":true,"insert_primary_key":6,"success_message":"

Your data has been successfully stored into the database. Edit Store<\/a> or Go back to list<\/a><\/p>","success_list_url":"http:\/\/www.everythingnow.uk\/stores\/stores\/success\/6"}

It looks like there is something wrong with my Grocerycrud setup. Does anyone have an idea what this problem might be?

 


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 11 July 2015 - 23:25 PM

Hi! I dont see anything unusual. But interesting that url have two same words stores/stores...

Did you debug request by clicking Save and return to the list btn with Firebug(Firephp)?


vardas

vardas
  • profile picture
  • Member

Posted 12 July 2015 - 16:17 PM

If you go to http://www.everythingnow.uk/stores/stores and edit the record the 'Update and return to list' button does not do anything. Firebug doesn't show any issues. It is as if there is no url associated witht he button which leads me to suspect there is something wrong with my setup.


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 12 July 2015 - 16:31 PM

In firebug i see next
 

TypeError: $(...).tinymce is not a function

So in the from we have three buttons - save (type='submit'), Save and go to the list (type='button') and Cancel (type='button')

Maybe I am wrong but two last buttons work with javascript handle - as we know if any javascript error then script just stop and other will not work.

And first button works because it plain submit form button.


vardas

vardas
  • profile picture
  • Member

Posted 12 July 2015 - 17:27 PM

Ah! Yes that must be it! Thanks I will sort out the tinycme problem.


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 12 July 2015 - 17:33 PM

you're welcome


vardas

vardas
  • profile picture
  • Member

Posted 12 July 2015 - 17:48 PM

That fixed the problem thanks.


vardas

vardas
  • profile picture
  • Member

Posted 12 July 2015 - 17:49 PM

Had to change to the ckeditor though because the tinymce editor does not exist in the grocery crud package