patch issued
https://code.google.com/p/web2py/issues/detail?id=1792
Please note that I can't attach the patched file in issue tracker app since
it gives me the following message:
Issue attachment storage quota exceeded.
Anyway you'll find the patched file here attached.
Il giorno mercoledì 27 novembre 2013 05:54:10 UTC+1, Massimo Di Pierro ha
scritto:
>
> I find it annoying too. Perhaps the default behavior should be for it to
> stay closed.
>
> On Tuesday, 26 November 2013 21:16:13 UTC-6, Bogdan Nechita wrote:
>>
>> Hello,
>>
>> In the admin web2py OOB application, when you edit a file, the "Files
>> Toggle" sidebar pops up every time on initial page load.
>> Does anyone know if there is a setting/code change I could make to stop
>> the sidebar from popping up?
>>
>> I looked through the js code that loads with the edit page but couldn't
>> find the line that sets this behaviour (I suspected a toggle on the
>> "#files" div).
>>
>>
>> <https://lh6.googleusercontent.com/-LaStuHfY4_Y/UpVioYHHjUI/AAAAAAAADnc/E-Wa3W6ey2w/s1600/files-toggle.png>
>>
>> Thanks,
>>
>> Bogdan Nechita
>>
>>
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
{{extend 'layout.html'}}
{{
def shortcut(combo, description):
return XML('
%s%s' % (combo, description))
def listfiles(app, dir, regexp='.*\.py$'):
files = sorted(
listdir(apath('%(app)s/%(dir)s/' % {'app':app, 'dir':dir}, r=request), regexp))
files = [x.replace(os.path.sep, '/') for x in files if not x.endswith('.bak')]
return files
def editfile(path,file,vars={}):
args=(path,file) if 'app' in vars else (app,path,file)
url = "" args=args, vars=vars)
return A(file, _class='editor_filelink', _href=url, _style='word-wrap: nowrap;')
}}
{{cm=URL('static%s' % (response.static_version and '/_' + response.static_version or ''),'codemirror')}}
{{js_url=URL('static%s' % (response.static_version and '/_' + response.static_version or ''),'js')}}
{{css_url=URL('static%s' % (response.static_version and '/_' + response.static_version or ''),'css')}}
{{if editor_settings['editor'] != 'default':}}{{pass}}
{{block sectionclass}}edit{{end}}