##// END OF EJS Templates
Some slight improvements in AJAX errors handling....
Jean-Philippe Lang -
r861:9a3d743ae57f
parent child
Show More
@@ -124,12 +124,12 class ApplicationController < ActionController::Base
124
124
125 def render_403
125 def render_403
126 @project = nil
126 @project = nil
127 render :template => "common/403", :layout => true, :status => 403
127 render :template => "common/403", :layout => !request.xhr?, :status => 403
128 return false
128 return false
129 end
129 end
130
130
131 def render_404
131 def render_404
132 render :template => "common/404", :layout => true, :status => 404
132 render :template => "common/404", :layout => !request.xhr?, :status => 404
133 return false
133 return false
134 end
134 end
135
135
@@ -6,7 +6,7
6 <%= if entry.is_dir?
6 <%= if entry.is_dir?
7 link_to_remote h(entry.name),
7 link_to_remote h(entry.name),
8 {:url => {:action => 'browse', :id => @project, :path => entry.path, :rev => @rev, :depth => (depth + 1), :parent_id => tr_id},
8 {:url => {:action => 'browse', :id => @project, :path => entry.path, :rev => @rev, :depth => (depth + 1), :parent_id => tr_id},
9 :update => tr_id,
9 :update => { :success => tr_id },
10 :position => :after,
10 :position => :after,
11 :success => "scmEntryLoaded('#{tr_id}')",
11 :success => "scmEntryLoaded('#{tr_id}')",
12 :condition => "scmEntryClick('#{tr_id}')"
12 :condition => "scmEntryClick('#{tr_id}')"
@@ -39,6 +39,6 ContextMenu.prototype = {
39 this.selection = tr;
39 this.selection = tr;
40 var id = tr.id.substring(6, tr.id.length);
40 var id = tr.id.substring(6, tr.id.length);
41 /* TODO: do not hard code path */
41 /* TODO: do not hard code path */
42 new Ajax.Updater('context-menu', '../../issues/context_menu/' + id, {asynchronous:true, evalScripts:true, onComplete:function(request){Effect.Appear('context-menu', {duration: 0.20})}})
42 new Ajax.Updater({success:'context-menu'}, '../../issues/context_menu/' + id, {asynchronous:true, evalScripts:true, onComplete:function(request){Effect.Appear('context-menu', {duration: 0.20})}})
43 }
43 }
44 }
44 }
General Comments 0
You need to be logged in to leave comments. Login now