fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zmiana jednego komentarza i poprawki błędów wskazanych przez jslint.
[redakcja.git]
/
project
/
static
/
js
/
models.js
diff --git
a/project/static/js/models.js
b/project/static/js/models.js
index
5d3fac4
..
e85ed5a
100644
(file)
--- a/
project/static/js/models.js
+++ b/
project/static/js/models.js
@@
-211,9
+211,9
@@
Editor.ImageGalleryModel = Editor.Model.extend({
$.log('galleries:', data);
$.log('galleries:', data);
- if (data.length ==
0)
+ if (data.length ==
= 0) {
this.set('data', []);
this.set('data', []);
- else {
+
}
else {
$.log('dupa');
this.set('data', data[0].pages);
}
$.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');
}
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
}
} 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');
}
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
}
} else if (xhr.status == 204) { // Nic nie zmieniono
} else if (xhr.status == 409) { // Konflikt podczas operacji
}