fix update status after upload

This commit is contained in:
Piotr Zalewa 2011-11-29 14:44:52 +01:00
Родитель e77a19270e
Коммит ccb5e3c75f
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -50,7 +50,7 @@ FlightDeck = Class.refactor(FlightDeck, {
'://' + settings.amooauth_domain + '://' + settings.amooauth_domain +
'/en-US/developers/addons" target="amo_dashboard">AMO dashboard</a>'); '/en-US/developers/addons" target="amo_dashboard">AMO dashboard</a>');
this.getStatus.delay(5000, this, el.getParent('.UI_AMO_Info')); this.getStatus.delay(5000, this, el.getParent('.UI_AMO_Info'));
this.updateStatus(el, {'status': 'Upload Scheduled'}) this.updateStatus(el.getParent('.UI_AMO_INFO'), {'status': 'Upload Scheduled'})
}.bind(this), }.bind(this),
addOnFailure: function() { addOnFailure: function() {
this.getStatus.delay(500, this, el.getParent('.UI_AMO_Info')); this.getStatus.delay(500, this, el.getParent('.UI_AMO_Info'));
@ -116,8 +116,6 @@ FlightDeck = Class.refactor(FlightDeck, {
*/ */
updateStatus: function(status_el, data, created) { updateStatus: function(status_el, data, created) {
var update = function(className, content) { var update = function(className, content) {
$log(status_el);
$log('FD: setting ' + className + ' ' + content);
status_el.getElements(className)[0].set('text', content).highlight(); status_el.getElements(className)[0].set('text', content).highlight();
}; };
if (data.status) update('.amo-review_status', data.status); if (data.status) update('.amo-review_status', data.status);