debug
This commit is contained in:
parent
6b8da53ad2
commit
c5b64c7053
1 changed files with 4 additions and 4 deletions
|
|
@ -27,10 +27,11 @@ var App = (function() {
|
|||
if (app.counters.length) {
|
||||
var source = $('#timer-template').html();
|
||||
|
||||
console.log(app.counters);
|
||||
|
||||
for (i in app.counters) {
|
||||
if (app.counters[i]) {
|
||||
var c = app.counters[i];
|
||||
|
||||
var $counter = $counters.children('li[data-id="' + c.issue.id + '"]');
|
||||
|
||||
if (!$counter.length) {
|
||||
|
|
@ -166,9 +167,8 @@ var App = (function() {
|
|||
if (!$('.issue-time').length) {
|
||||
app.flash('Some forms are not correct.', 'danger');
|
||||
} else {
|
||||
app.counters = [];
|
||||
$('#content').empty();
|
||||
$('#counters > ul').remove();
|
||||
$('#counters > ul').remove();
|
||||
|
||||
app.flash('Redmine has been fully updated!', 'info');
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ var App = (function() {
|
|||
$('#content').show();
|
||||
$('#loading').hide();
|
||||
console.log('Request failed.');
|
||||
console.log([uri, type, data]);
|
||||
console.log([uri, type, data]);
|
||||
app.flash('Request failed.', 'danger');
|
||||
},
|
||||
always: function() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue