From ed513d6c11381d01e5c271fd0d12f49f5ae7c8f5 Mon Sep 17 00:00:00 2001 From: zuber Date: Tue, 29 Sep 2009 19:29:36 +0200 Subject: [PATCH] =?utf8?q?Zmiana=20jednego=20komentarza=20i=20poprawki=20b?= =?utf8?q?=C5=82=C4=99d=C3=B3w=20wskazanych=20przez=20jslint.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- project/static/js/models.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/static/js/models.js b/project/static/js/models.js index 5d3fac49..e85ed5a0 100644 --- a/project/static/js/models.js +++ b/project/static/js/models.js @@ -211,9 +211,9 @@ Editor.ImageGalleryModel = Editor.Model.extend({ $.log('galleries:', data); - if (data.length == 0) + if (data.length === 0) { this.set('data', []); - else { + } else { $.log('dupa'); this.set('data', data[0].pages); } @@ -319,7 +319,7 @@ Editor.DocumentModel = Editor.Model.extend({ this.contentModels[key].set('revision', this.data.user_revision); this.contentModels[key].set('state', 'empty'); } - } else if (xhr.status == 202) { // Wygenerowano PullRequest + } else if (xhr.status == 202) { // Wygenerowano PullRequest (tutaj?) } else if (xhr.status == 204) { // Nic nie zmieniono } else if (xhr.status == 409) { // Konflikt podczas operacji } @@ -351,7 +351,7 @@ Editor.DocumentModel = Editor.Model.extend({ this.contentModels[key].set('revision', this.data.user_revision); this.contentModels[key].set('state', 'empty'); } - } else if (xhr.status == 202) { // Wygenerowano PullRequest (tutaj?) + } else if (xhr.status == 202) { // Wygenerowano PullRequest } else if (xhr.status == 204) { // Nic nie zmieniono } else if (xhr.status == 409) { // Konflikt podczas operacji } -- 2.20.1