From 1ad54a06d5713485b569c3aab36df94b58bd91cc Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 11 Dec 2012 22:50:12 +0100 Subject: [PATCH] audio player example: cleanup --- examples/ui/audio_player/js/example.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/ui/audio_player/js/example.js b/examples/ui/audio_player/js/example.js index 05fc7f40..a98e4de5 100644 --- a/examples/ui/audio_player/js/example.js +++ b/examples/ui/audio_player/js/example.js @@ -17,7 +17,7 @@ Ox.load('UI', function() { .addClass('symbol') .attr({src: Ox.UI.getImageURL( 'symbol' + Ox.toTitleCase( - value || (data.query ? 'find ': 'click') + value || (data.query ? 'find': 'click') ) )}); }, @@ -427,7 +427,7 @@ Ox.load('UI', function() { .attr({id: 'findSelect'}) .bindEvent({ change: function(data) { - $findLabel.options({title: data.title}); + app.$ui.findLabel.options({title: data.title}); } }); }; @@ -546,6 +546,7 @@ Ox.load('UI', function() { var $element = Ox.TableList({ columns: app.site.listColumns, items: app.user.lists, + keys: ['query'], max: 1, selected: [app.user.ui.list], sort: [{key: 'index', operator: '+'}], @@ -554,7 +555,7 @@ Ox.load('UI', function() { }) .bindEvent({ move: function(data) { - Ox.print('MOVE:', data); + // ... }, select: function(data) { app.UI.set({list: data.ids[0] || app.site.lists[0].id}); @@ -719,7 +720,6 @@ Ox.load('UI', function() { }); $element.update = function() { app.utils.getTrackAlbums(function(albums) { - Ox.print('ALBUMS::::', albums) $element.options({items: albums}); }); return $element; @@ -744,7 +744,7 @@ Ox.load('UI', function() { init: function(data) { app.$ui.statusText.update(data); app.utils.getTrackAlbums(function(data) { - Ox.print('::::', data); + // ... }); }, open: function(data) { @@ -770,7 +770,6 @@ Ox.load('UI', function() { app.UI.set({selectedTrack: data.ids}); }, sort: function(data) { - Ox.print('DDD', data); app.UI.set({sort: [data]}); } }); @@ -984,7 +983,6 @@ Ox.load('UI', function() { $panel.options({width: data.size}) }, select: function(data) { - Ox.print('SELECT::', data) app.UI.set( 'selected' + Ox.toTitleCase(data.id.slice(0, -1)), data.ids