add placeholder handlers for selectbefore/selectafter

This commit is contained in:
rolux 2012-02-15 16:28:58 +00:00
parent 0c466f5dbf
commit d163a951a1

View file

@ -230,7 +230,7 @@ pandora.ui.folders = function() {
}); });
}); });
} else if (data.id == 'browse') { } else if (data.id == 'browse') {
alert('??') // alert('??')
/* /*
pandora.$ui.sectionList[1].replaceWith(pandora.$ui.publicLists = pandora.ui.publicLists()); pandora.$ui.sectionList[1].replaceWith(pandora.$ui.publicLists = pandora.ui.publicLists());
pandora.site.showAllPublicLists = true; pandora.site.showAllPublicLists = true;
@ -245,9 +245,16 @@ pandora.ui.folders = function() {
}); });
//$sections.push(pandora.$ui.section[i]); //$sections.push(pandora.$ui.section[i]);
pandora.$ui.folderList[folder.id] = pandora.ui.folderList(folder.id) pandora.$ui.folderList[folder.id] = pandora.ui.folderList(folder.id)
.bindEvent({
selectafter: function() {
// ...
},
selectbefore: function() {
// ...
}
})
.bindEventOnce({ .bindEventOnce({
init: function(data) { init: function(data) {
Ox.Log('', 'init', i, counter)
if (++counter == 4) { if (++counter == 4) {
pandora.$ui.folder.forEach(function($folder) { pandora.$ui.folder.forEach(function($folder) {
that.append($folder); that.append($folder);