From 420d6e162c9485512353421739646acab5f5b12e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 22 Jan 2011 18:09:55 +0530 Subject: [PATCH] scroll, fix pandora.js --- static/js/pandora.api.js | 3 +++ static/js/pandora.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora.api.js b/static/js/pandora.api.js index fe4f97d..69bb45b 100755 --- a/static/js/pandora.api.js +++ b/static/js/pandora.api.js @@ -32,6 +32,7 @@ var app = new Ox.App({ } }); + app.$ui.actionList.$body.css({overflowX: 'hidden', overflowY: 'auto'}); var $main = new Ox.SplitPanel({ elements: [ { @@ -69,6 +70,7 @@ function constructList() { app.api.api(function(results) { var items = []; $.each(results.data.actions, function(i, k) {items.push({'name': i})}); + items = items.sort(function(a, b) { return a.name > b.name; }); var result = {'data': {'items': items.length}}; callback(result); }); @@ -76,6 +78,7 @@ function constructList() { app.api.api(function(results) { var items = []; $.each(results.data.actions, function(i, k) {items.push({'name': i})}); + items = items.sort(function(a, b) { return a.name > b.name; }); var result = {'data': {'items': items}}; callback(result); }); diff --git a/static/js/pandora.js b/static/js/pandora.js index 0d6edff..a64525b 100755 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -3649,4 +3649,4 @@ var pandora = new Ox.App({ load(); -//}); +});