update: function()
{
+ if(typeof(this.time) === 'undefined') {
+ var now = new Date();
+ Roo.log('NOW');
+ Roo.log(now.format('i'));
+ Roo.log('NEW');
+ var newMinute = Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep;
+ Roo.log(newMinute);
+ }
this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;
this.fill();
var cd = (e.browserEvent.clipboardData || window.clipboardData);
// check what type of paste - if it's an image, then handle it differently.
- if (cd.files && cd.files.length > 0) {
- // pasting images?
+ if (cd.files && cd.files.length > 0 && cd.types.indexOf('text/html') < 0) {
+ // pasting images?
var urlAPI = (window.createObjectURL && window) ||
(window.URL && URL.revokeObjectURL && URL) ||
(window.webkitURL && webkitURL);