fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed DC panel form. PersonListField was raising a TypeError.
[redakcja.git]
/
project
/
static
/
js
/
editor.js
diff --git
a/project/static/js/editor.js
b/project/static/js/editor.js
index
0a56c5a
..
585f3ce
100644
(file)
--- a/
project/static/js/editor.js
+++ b/
project/static/js/editor.js
@@
-148,7
+148,8
@@
Editor.prototype.loadConfig = function() {
panels: [
{name: 'htmleditor', ratio: 0.5},
{name: 'gallery', ratio: 0.5}
panels: [
{name: 'htmleditor', ratio: 0.5},
{name: 'gallery', ratio: 0.5}
- ]
+ ],
+ lastUpdate: 0,
}
try {
}
try {
@@
-200,6
+201,7
@@
Editor.prototype.savePanelOptions = function() {
})
});
self.options.panels = panels;
})
});
self.options.panels = panels;
+ self.options.lastUpdate = (new Date()).getTime() / 1000;
$.log($.toJSON(self.options));
$.cookie('options', $.toJSON(self.options), { expires: 7, path: '/'});
}
$.log($.toJSON(self.options));
$.cookie('options', $.toJSON(self.options), { expires: 7, path: '/'});
}
@@
-320,7
+322,7
@@
Editor.prototype.showPopup = function(name, text)
return;
var box = $('#message-box > #' + name);
return;
var box = $('#message-box > #' + name);
- $('
span
.data', box).html(text);
+ $('
*
.data', box).html(text);
box.fadeIn();
self._nextPopup = function() {
box.fadeIn();
self._nextPopup = function() {
@@
-329,11
+331,11
@@
Editor.prototype.showPopup = function(name, text)
var box = $('#message-box > #' + elem[0]);
box.fadeOut(300, function() {
var box = $('#message-box > #' + elem[0]);
box.fadeOut(300, function() {
- $('
span
.data', box).html();
+ $('
*
.data', box).html();
if( self.popupQueue.length > 0) {
box = $('#message-box > #' + self.popupQueue[0][0]);
if( self.popupQueue.length > 0) {
box = $('#message-box > #' + self.popupQueue[0][0]);
- $('
span
.data', box).html(self.popupQueue[0][1]);
+ $('
*
.data', box).html(self.popupQueue[0][1]);
box.fadeIn();
setTimeout(self._nextPopup, 5000);
}
box.fadeIn();
setTimeout(self._nextPopup, 5000);
}