add pandora.addItem method

This commit is contained in:
rolux 2013-02-25 15:48:27 +05:30
parent 2c58f8f15e
commit e876d49251

View file

@ -2,6 +2,15 @@
'use strict';
pandora.addItem = function() {
pandora.api.add(function(result) {
pandora.UI.set({
item: result.data.id,
itemView: 'info'
});
});
};
pandora.addList = function() {
// addList(isSmart, isFrom) or addList(list) [=duplicate]
var $folderList = pandora.$ui.folderList.personal,
@ -64,7 +73,7 @@ pandora.addList = function() {
}
});
} else {
addList()
addList();
}
});
}