null/demo.local.php
[gitlive] / FixBug.bjs
index 548eb46..f9c4e3b 100644 (file)
                                             "items": [
                                                 {
                                                     "listeners": {
-                                                        "cursor_changed": "function (self) {\n    \n    var ret = {};\n    this.selection.get_selected(ret);\n\n    // var val = \"\";\n    var value = ''+ret.model.get_value(ret.iter, 0).value.get_string();\n    \n    print(value);\n    var rec = false;\n    this.get('/ticket-store').data.forEach( function(e) {\n        if (e.id == value) {\n            rec = e;\n            return  false;\n        }\n    });\n    // update the text box with the ticket data..\n    this.get('/ticket-textview').show(rec);\n    //print(rec);\n\n}"
+                                                        "cursor_changed": "function (self) {\n    \n    var ret = {};\n    this.selection.get_selected(ret);\n\n    // var val = \"\";\n    var value = ''+ret.model.get_value(ret.iter, 0).value.get_string();\n    \n    print(value);\n    var rec = false;\n    this.get('/ticket-store').data.forEach( function(e) {\n        if (e.id == value) {\n            rec = e;\n            return  false;\n        }\n    });\n    // update the text box with the ticket data..\n    this.get('/view').show(rec);\n    //print(rec);\n\n}"
                                                     },
                                                     "id": "ticket-view",
                                                     "pack": "add",
                                                     "id": "RightEditor",
                                                     "items": [
                                                         {
-                                                            "|editable": "false",
                                                             "id": "view",
                                                             "indent_width": 4,
                                                             "pack": "add",
                                                             "xtype": "TextView",
                                                             "|auto_indent": true,
+                                                            "|editable": "false",
                                                             "|init": "function() {\n    XObject.prototype.init.call(this);\n    var description = Pango.font_description_from_string(\"monospace\");\n\n    description.set_size(8000);\n    this.el.modify_font(description);\n\n}\n",
                                                             "|load": "function(str) {\n\n// show the help page for the active node..\n \n\n\n \n    this.el.get_buffer().set_text(str, str.length);\n \n    \n     var buf = this.el.get_buffer();\n     \n     \n    \n}",
+                                                            "|show": "function(p) {\n     var line =  [\n            'Status : ' +   p.status_name,\n            'ID : ' +   p.id,\n            '',\n            'Summary :  ' +  p.summary,\n             '' + \n             p.description,\n         ].join(\"\\n\")   ;\n         print(line);\n         \n         \n         // can not do rich text due to so many missing features..\n          this.el.get_buffer().set_text(line, line.length);\n \n}\n",
                                                             "|show_line_numbers": true,
                                                             "|xns": "Gtk",
                                                             "items": [