fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hmm..
[redakcja.git]
/
project
/
static
/
js
/
views
/
html.js
diff --git
a/project/static/js/views/html.js
b/project/static/js/views/html.js
index
2e5f7cf
..
a7f02dd
100644
(file)
--- a/
project/static/js/views/html.js
+++ b/
project/static/js/views/html.js
@@
-24,18
+24,22
@@
var HTMLView = View.extend({
modelStateChanged: function(property, value) {
if (value == 'synced' || value == 'dirty') {
modelStateChanged: function(property, value) {
if (value == 'synced' || value == 'dirty') {
- this.
parent.
unfreeze();
+ this.unfreeze();
} else if (value == 'unsynced') {
} else if (value == 'unsynced') {
- this.
parent.
freeze('Niezsynchronizowany...');
+ this.freeze('Niezsynchronizowany...');
} else if (value == 'loading') {
} else if (value == 'loading') {
- this.
parent.
freeze('Ładowanie...');
+ this.freeze('Ładowanie...');
} else if (value == 'saving') {
} else if (value == 'saving') {
- this.
parent.
freeze('Zapisywanie...');
+ this.freeze('Zapisywanie...');
} else if (value == 'error') {
} else if (value == 'error') {
- this.
parent.
freeze(this.model.get('error'));
+ this.freeze(this.model.get('error'));
}
},
}
},
+ reload: function() {
+ this.model.load(true);
+ },
+
dispose: function() {
this.model.removeObserver(this);
this._super();
dispose: function() {
this.model.removeObserver(this);
this._super();