scroll, fix pandora.js

This commit is contained in:
j 2011-01-22 18:09:55 +05:30
parent 9afbd206c3
commit 420d6e162c
2 changed files with 4 additions and 1 deletions

View file

@ -32,6 +32,7 @@ var app = new Ox.App({
} }
}); });
app.$ui.actionList.$body.css({overflowX: 'hidden', overflowY: 'auto'});
var $main = new Ox.SplitPanel({ var $main = new Ox.SplitPanel({
elements: [ elements: [
{ {
@ -69,6 +70,7 @@ function constructList() {
app.api.api(function(results) { app.api.api(function(results) {
var items = []; var items = [];
$.each(results.data.actions, function(i, k) {items.push({'name': i})}); $.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}}; var result = {'data': {'items': items.length}};
callback(result); callback(result);
}); });
@ -76,6 +78,7 @@ function constructList() {
app.api.api(function(results) { app.api.api(function(results) {
var items = []; var items = [];
$.each(results.data.actions, function(i, k) {items.push({'name': i})}); $.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}}; var result = {'data': {'items': items}};
callback(result); callback(result);
}); });

View file

@ -3649,4 +3649,4 @@ var pandora = new Ox.App({
load(); load();
//}); });