diff --git a/VERSION b/VERSION index 83e7040f..983040df 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.02.07.20.31 +Version 2.6.0-development+timestamp.2013.07.02.07.39.15 diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 5e0e3ce5..a23ea5c2 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -458,32 +458,6 @@ def remove_compiled_app(): redirect(URL('site')) -def delete(): - """ Object delete handler """ - app = get_app() - filename = '/'.join(request.args) - sender = request.vars.sender - - if isinstance(sender, list): # ## fix a problem with Vista - sender = sender[0] - - if 'nodelete' in request.vars: - redirect(URL(sender, anchor=request.vars.id)) - elif 'delete' in request.vars: - try: - full_path = apath(filename, r=request) - lineno = count_lines(open(full_path, 'r').read()) - os.unlink(full_path) - log_progress(app, 'DELETE', filename, progress=-lineno) - session.flash = T('file "%(filename)s" deleted', - dict(filename=filename)) - except Exception: - session.flash = T('unable to delete file "%(filename)s"', - dict(filename=filename)) - redirect(URL(sender, anchor=request.vars.id2)) - return dict(filename=filename, sender=sender) - - def delete(): """ Object delete handler """ app = get_app() diff --git a/applications/admin/static/js/ajax_editor.js b/applications/admin/static/js/ajax_editor.js index 4a0560c4..9f3fca87 100644 --- a/applications/admin/static/js/ajax_editor.js +++ b/applications/admin/static/js/ajax_editor.js @@ -232,8 +232,8 @@ function load_file (url) { if (typeof(json['plain_html']) !== undefined) { if (jQuery('#' + json['id']).length === 0 || json['force'] === true) { // Create a tab and put the code in it - var tab_header = '