diff options
| author | Rob Hudson | 2008-09-20 13:44:09 -0700 | 
|---|---|---|
| committer | Rob Hudson | 2008-09-20 13:44:09 -0700 | 
| commit | 6bd25be6b8345f0a08c99acc35877faafd2a08ee (patch) | |
| tree | 4171f572ff4cf4bdfe4da65d466711948ade9e1d /debug_toolbar/media | |
| parent | 0c2c0ab82d6f848b6083a176f301d72d8bb798d8 (diff) | |
| download | django-debug-toolbar-6bd25be6b8345f0a08c99acc35877faafd2a08ee.tar.bz2 | |
partly done with ajax support and js
Diffstat (limited to 'debug_toolbar/media')
| -rw-r--r-- | debug_toolbar/media/toolbar.css | 2 | ||||
| -rw-r--r-- | debug_toolbar/media/toolbar.js | 19 | 
2 files changed, 18 insertions, 3 deletions
diff --git a/debug_toolbar/media/toolbar.css b/debug_toolbar/media/toolbar.css index 11dd978..7d2ad82 100644 --- a/debug_toolbar/media/toolbar.css +++ b/debug_toolbar/media/toolbar.css @@ -12,3 +12,5 @@  #djDebug th, #djDebug td {padding: 5px;}  #djDebug .row1 td {background:#fff;}  #djDebug .row2 td {background:#ddd;} +#djDebugWindow {z-index:2000000;} +#djDebugWindow .back {float:right; font-weight:bold;} diff --git a/debug_toolbar/media/toolbar.js b/debug_toolbar/media/toolbar.js index 3da65d2..7d2f6b5 100644 --- a/debug_toolbar/media/toolbar.js +++ b/debug_toolbar/media/toolbar.js @@ -17,13 +17,22 @@ jQuery(function() {  				}  				return false;  			}); -			jQuery('#djDebugTemplatePanel a.djTemplateShowContext').click(function() { -				jQuery.djDebug.toggle_content(jQuery(this).parent().next()); -			});  			jQuery('#djDebug a.close').click(function() {  				jQuery(document).trigger('close.djDebug');  				return false;  			}); +			jQuery('#djDebugWindow a.back').click(function() { +				console.dir(jQuery(this).parent()); +				jQuery(this).parent().hide(); +				return false; +			}); +			jQuery('#djDebug a.remoteCall').click(function() { +				jQuery.djDebug.remote_call(this); +				return false; +			}); +			jQuery('#djDebugTemplatePanel a.djTemplateShowContext').click(function() { +				jQuery.djDebug.toggle_content(jQuery(this).parent().next()); +			});  		},  		open: function() {  			jQuery(document).bind('keydown.djDebug', function(e) { @@ -39,6 +48,10 @@ jQuery(function() {  				elem.show();  			}  		}, +		remote_call: function(obj) { +			jQuery('#djDebugWindow').load(obj.href).show(); +			 +		},  		close: function() {  			jQuery(document).trigger('close.djDebug');  			return false;  | 
