alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

Admin JS link to edit_area wrong on non-root installations #192

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From dirkyd...@gmx.net on February 17, 2011 02:54:04

What steps will reproduce the problem? 1. edit a py file in the admin section

  1. click the text input area in editarea
  2. press Ctrl-S or click Save button What is the expected output? What do you see instead? Expected: code is saved. See: Browser's save dialog (CTRL-S), nothing happens (click on button) What version of the product are you using? On what operating system? 1.92.1 Please provide any additional information below. Link to JavaScript file "ajax_editor.js" is wrong. I have installed web2py as Apache WSGI not in /', but in/2'. That JS link still points to "/{app}}/static/js/ajax_editor.js". Link to edit_area_full.js is correct.

PROPOSED SOLUTION: In template "default/edit" I have prepended 'script_name' to the JS link, like this:

It works now.

Original issue: http://code.google.com/p/web2py/issues/detail?id=194

alfonsodg commented 10 years ago

From massimo....@gmail.com on February 18, 2011 06:45:38

Status: Fixed