forked from extern/egroupware
Fix calendar date picker in sidebox stops resizing after switching between tabs
This commit is contained in:
parent
c35654ddca
commit
75d51c02f2
@ -188,7 +188,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
delete content.data.year;
|
delete content.data.year;
|
||||||
|
|
||||||
this._setup_sidebox_filters();
|
this._setup_sidebox_filters();
|
||||||
|
|
||||||
this.state = content.data;
|
this.state = content.data;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -3448,7 +3448,7 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
_set_autorefresh: function() {
|
_set_autorefresh: function() {
|
||||||
// Listview not loaded
|
// Listview not loaded
|
||||||
if(typeof app.classes.calendar.views.listview.etemplates[0] == 'string') return;
|
if(typeof app.classes.calendar.views.listview.etemplates[0] == 'string') return;
|
||||||
|
|
||||||
var nm = app.classes.calendar.views.listview.etemplates[0].widgetContainer.getWidgetById('nm');
|
var nm = app.classes.calendar.views.listview.etemplates[0].widgetContainer.getWidgetById('nm');
|
||||||
// nextmatch missing
|
// nextmatch missing
|
||||||
if(!nm) return;
|
if(!nm) return;
|
||||||
@ -3465,11 +3465,12 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
{
|
{
|
||||||
window.clearInterval(nm._autorefresh_timer);
|
window.clearInterval(nm._autorefresh_timer);
|
||||||
}
|
}
|
||||||
|
var self = this;
|
||||||
var refresh = function() {
|
var refresh = function() {
|
||||||
// Deleted events are not coming properly, so clear it all
|
// Deleted events are not coming properly, so clear it all
|
||||||
this._clear_cache();
|
self._clear_cache();
|
||||||
// Force redraw to current state
|
// Force redraw to current state
|
||||||
this.setState({state: this.state});
|
self.setState({state: self.state});
|
||||||
|
|
||||||
// This is a fast update, but misses deleted events
|
// This is a fast update, but misses deleted events
|
||||||
//app.calendar._fetch_data(app.calendar.state);
|
//app.calendar._fetch_data(app.calendar.state);
|
||||||
|
Loading…
Reference in New Issue
Block a user