forked from 0x2620/pandora
add pandora.addItem method
This commit is contained in:
parent
2c58f8f15e
commit
e876d49251
1 changed files with 10 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue