Modified:
trunk/html/rt.js
Log:
whitespace cleanup
Modified: trunk/html/rt.js
==============================================================================
--- trunk/html/rt.js (original)
+++ trunk/html/rt.js Tue Jan 8 10:28:55 2008
@@ -47,15 +47,13 @@
Ext.onReady(function() {
-var first_query = null;
-{
- hash_pos = document.URL.indexOf("#");
- if (hash_pos != -1) {
- first_query = document.URL.substring(hash_pos+1);
+ var first_query = null;
+ {
+ hash_pos = document.URL.indexOf("#");
+ if (hash_pos != -1) {
+ first_query = document.URL.substring(hash_pos+1);
+ }
}
-}
-
-
var panel = new Ext.Viewport ({
layout: 'border',
@@ -66,110 +64,108 @@
border: false,
margins: '0 0 5 0'
}, {
- region: 'west',
- collapsible: true,
- title: 'Queries',
- xtype: 'treepanel',
- width: 150,
- autoScroll: true,
- split: true,
- loader: new Ext.tree.TreeLoader(),
- root: new Ext.tree.AsyncTreeNode({
- expanded: true,
- children: [{
- text: 'HLLs',
- expanded: true,
- children: [{
- text: 'perl6',
- leaf: true
- }, {
- text: 'tcl',
- leaf: true
- }]
- }, {
- text: 'Skillsets',
- expanded: true,
- children: [{
- text: 'Perl',
- leaf: true
- }, {
- text: 'C',
- leaf: true
- }, {
- text: 'PIR',
- leaf: true
- }]
- }, {
- text: 'Tags',
- expanded: true,
- children: [{
- text: 'CAGE',
- leaf: true
- }, {
- text: 'TODO',
- leaf: true
- }, {
- text: 'PATCH',
- leaf: true
- }, {
- text: 'DEPRECATED',
- leaf: true
- }, {
- text: 'BUG',
- leaf: true
- }, {
- text: 'PATCH',
- leaf: true
- }, {
- text: 'RFC',
- leaf: true
- }, {
- text: 'RFE',
- leaf: true
- }, {
- text: 'PROPOSAL',
- leaf: true
- }]
- }]
- }),
- rootVisible: false,
- listeners: {
- click: function(n) {
- if (! n.isLeaf())
+ region: 'west',
+ collapsible: true,
+ title: 'Queries',
+ xtype: 'treepanel',
+ width: 150,
+ autoScroll: true,
+ split: true,
+ loader: new Ext.tree.TreeLoader(),
+ root: new Ext.tree.AsyncTreeNode({
+ expanded: true,
+ children: [{
+ text: 'HLLs',
+ expanded: true,
+ children: [{
+ text: 'perl6',
+ leaf: true
+ }, {
+ text: 'tcl',
+ leaf: true
+ }]
+ }, {
+ text: 'Skillsets',
+ expanded: true,
+ children: [{
+ text: 'Perl',
+ leaf: true
+ }, {
+ text: 'C',
+ leaf: true
+ }, {
+ text: 'PIR',
+ leaf: true
+ }]
+ }, {
+ text: 'Tags',
+ expanded: true,
+ children: [{
+ text: 'CAGE',
+ leaf: true
+ }, {
+ text: 'TODO',
+ leaf: true
+ }, {
+ text: 'PATCH',
+ leaf: true
+ }, {
+ text: 'DEPRECATED',
+ leaf: true
+ }, {
+ text: 'BUG',
+ leaf: true
+ }, {
+ text: 'PATCH',
+ leaf: true
+ }, {
+ text: 'RFC',
+ leaf: true
+ }, {
+ text: 'RFE',
+ leaf: true
+ }, {
+ text: 'PROPOSAL',
+ leaf: true
+ }]
+ }]
+ }),
+ rootVisible: false,
+ listeners: {
+ click: function(n) {
+ if (! n.isLeaf())
return;
- open_tab(n.attributes.text);
- }
+ open_tab(n.attributes.text);
}
+ }
}, {
- id: 'tabby',
- region: 'center',
- xtype: 'tabpanel',
- activeTab: 0,
- items: [{
+ id: 'tabby',
+ region: 'center',
+ xtype: 'tabpanel',
+ activeTab: 0,
+ items: [{
title: 'Instructions',
html: 'Click on queries to the left to open new tabs',
closable: true
- }]
+ }]
}, {
- region: 'south',
- title: 'TODO',
- collapsible: true,
- html: '<ul>' +
- '<li>Display summary like the feed example on ext.js site' +
- '<li>Setup a cron job to load this data every hour or so.' +
- '<li>only load the parts of ext we are using.' +
- '<li>Clicking on a ticket should open it in a tab, not a new
window.' +
- '<li>clicking anywhere on a row should open the ticket, (no
point in ticket hyperlink then.)' +
- '</ul>'
+ region: 'south',
+ title: 'TODO',
+ collapsible: true,
+ html: '<ul>' +
+ '<li>Display summary like the feed example on ext.js site' +
+ '<li>Setup a cron job to load this data every hour or so.' +
+ '<li>only load the parts of ext we are using.' +
+ '<li>Clicking on a ticket should open it in a tab, not a new
window.' +
+ '<li>clicking anywhere on a row should open the ticket, (no
point in ticket hyperlink then.)' +
+ '</ul>'
}]
-});
+ });
-if (first_query != null) {
- open_tab(first_query);
-}
+ if (first_query != null)
+ open_tab(first_query);
});
-
// vim: expandtab shiftwidth=2: