null/demo.local.php
[gitlive] / FixBug.js
index e542d05..813382c 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -433,9 +433,6 @@ FixBug=new XObject({
                                                     id : "view",
                                                     indent_width : 4,
                                                     pack : "add",
-                                                    show : function() {
-                                                        
-                                                    },
                                                     auto_indent : true,
                                                     editable : false,
                                                     init : function() {
@@ -460,6 +457,22 @@ FixBug=new XObject({
                                                          
                                                          
                                                         
+                                                    },
+                                                    show : function(p) {
+                                                         var line =  [
+                                                                'Status : ' +   p.status_name,
+                                                                'ID : ' +   p.id,
+                                                                '',
+                                                                'Summary :  ' +  p.summary,
+                                                                 '' + 
+                                                                 p.description,
+                                                             ].join("\n")   ;
+                                                             print(line);
+                                                             
+                                                             
+                                                             // can not do rich text due to so many missing features..
+                                                              this.el.get_buffer().set_text(line, line.length);
+                                                     
                                                     },
                                                     show_line_numbers : true,
                                                     items : [