CC-5709: Airtime Analyzer
* Make the Recent Uplods file actions a bit clearer
This commit is contained in:
parent
03267fe83b
commit
9e9e676b54
1 changed files with 9 additions and 2 deletions
|
@ -67,8 +67,15 @@ $(document).ready(function() {
|
|||
};
|
||||
|
||||
self.renderFileActions = function ( data, type, full ) {
|
||||
return '<a class="deleteFileAction">Delete</a>';
|
||||
};
|
||||
if (full.import_status == 0) {
|
||||
return '<a class="deleteFileAction">' + $.i18n._('Delete from Library') + '</a>';
|
||||
} else if (full.import_status == 1) {
|
||||
//No actions for pending files
|
||||
return $.i18n._('N/A');
|
||||
} else { //Failed downloads
|
||||
return '<a class="deleteFileAction">' + $.i18n._('Clear') + '</a>';
|
||||
}
|
||||
};
|
||||
|
||||
$("#recent_uploads_table").on("click", "a.deleteFileAction", function () {
|
||||
//Grab the file object for the row that was clicked.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue