"Try again" button in error panel.
authorŁukasz Rekucki <lrekucki@gmail.com>
Mon, 21 Sep 2009 10:12:48 +0000 (12:12 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Mon, 21 Sep 2009 10:12:48 +0000 (12:12 +0200)
project/templates/explorer/panels/parse_error.html

index ac28fcb..027e8b4 100644 (file)
@@ -2,8 +2,17 @@
 <p><b>{{ exception_type }}</b></p>
 <p>{{ exception.message }}</p>
 
+<button id="try-again-button" type="button">Try Again</button>
+
 <script type="text/javascript" charset="utf-8">
 panel_hooks = {
+    load: function() {
+        var self = this;
+
+        $('#try-again-button').click(function() {
+            self.load(self.current_url);
+        });      
+    },
     refresh: function() {
         return true; // error page is static
     },