datasci
datasci

Reputation: 1029

Web2py Admin Ajax Save Not Working

I've been having this problem on and off for a couple of weeks now, and I can't figure out what's causing it. The issue appears to occur after I make changes to a view, and then save those changes using ajax save (ctl+s).

When ajax save is not working, I notice that pages dedicated to editing views become slightly distorted after the page fully loads (e.g. it looks like height of the navbar and footer increases, and the buttons lose styling), and ctl+s always brings up a dialog to save the page as an html file on your machine. I also notice that the edit pages initially load quickly (appear to be done loading) with the title 'editing app' in the browser, but then after a second some additional loading occurs, which is then followed by the distortion and a new title in the browser (the title of the actual page).

Has anyone else experienced this issue? I'm running 2.9.12.

-- EDIT

I also should note that when this happened, I was saving multiple views via ajax save, one after another, in a very short period of time. Moreover, I have multiple applications in Web2py and this doesn't seem to extend to other apps running on the same system.

-- Here is a video showing what's going on: https://vid.me/rSMS

Upvotes: 0

Views: 113

Answers (1)

Anthony
Anthony

Reputation: 25536

Make sure the code editing window has focus (i.e., the cursor is in the editor) before hitting ctrl-s. It sounds like maybe you have clicked somewhere outside the editor, so when you hit ctrl-s, the browser receives the command to save the current HTML page.

Upvotes: 0

Related Questions