}
translation.months.push(month);
- translation/monthsShort.push(monthShort);
+ translation.monthsShort.push(monthShort);
}
},
update: function()
{
// default minute is a multiple of minuteStep
- if(typeof(this.time) === 'undefined') {
+ if(typeof(this.time) === 'undefined' || this.time.length == 0) {
this.time = new Date();
this.time = this.time.add(Date.MINUTE, Math.round(parseInt(this.time.format('i')) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i')));
}
- this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
+ this.time = (typeof(this.time) === 'undefined' || this.time.length == 0) ? new Date() : this.time;
this.fill();
},
{
// we can not rely on yahoo syndication to use CSS elements - so have to use '<i>' to encase stuff.
tag : 'i',
- contenteditable : true,
+ contenteditable : Roo.htmleditor.BlockFigure.caption_edit,
html : captionhtml
}
-})
+});
+
+Roo.apply(Roo.htmleditor.BlockFigure, {
+ caption_edit : true
+});