forked from 0x2620/pandora
minor refactoring
This commit is contained in:
parent
471ab02de9
commit
0cda5df177
1 changed files with 4 additions and 5 deletions
|
@ -76,7 +76,7 @@ pandora.ui.filesView = function(options, self) {
|
||||||
format: function(value, data) {
|
format: function(value, data) {
|
||||||
return $('<img>')
|
return $('<img>')
|
||||||
.attr({
|
.attr({
|
||||||
src: data.wanted ? Ox.UI.getImageURL('symbolStar') :
|
src: data.wanted ? Ox.UI.getImageURL('symbolUpload') :
|
||||||
Ox.UI.getImageURL('symbolCheck')
|
Ox.UI.getImageURL('symbolCheck')
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
|
@ -136,7 +136,7 @@ pandora.ui.filesView = function(options, self) {
|
||||||
operator: '+',
|
operator: '+',
|
||||||
title: 'Part Title',
|
title: 'Part Title',
|
||||||
visible: true,
|
visible: true,
|
||||||
width: 180
|
width: 120
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
editable: true,
|
editable: true,
|
||||||
|
@ -442,12 +442,11 @@ pandora.ui.filesView = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ignoreFiles() {
|
function ignoreFiles() {
|
||||||
var data = {
|
pandora.api.editFiles({
|
||||||
files: self.selected.map(function(id) {
|
files: self.selected.map(function(id) {
|
||||||
return {id: id, ignore: true};
|
return {id: id, ignore: true};
|
||||||
})
|
})
|
||||||
};
|
}, function(result) {
|
||||||
pandora.api.editFiles(data, function(result) {
|
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache();
|
||||||
self.$filesList.reloadList();
|
self.$filesList.reloadList();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue