merge with default
This commit is contained in:
commit
4de7a13fc5
|
@ -180,6 +180,7 @@
|
||||||
_config.editorConfig.canHistoryRestore = _config.events && !!_config.events.onRequestRestore;
|
_config.editorConfig.canHistoryRestore = _config.events && !!_config.events.onRequestRestore;
|
||||||
_config.editorConfig.canSendEmailAddresses = _config.events && !!_config.events.onRequestEmailAddresses;
|
_config.editorConfig.canSendEmailAddresses = _config.events && !!_config.events.onRequestEmailAddresses;
|
||||||
_config.editorConfig.canRequestEditRights = _config.events && !!_config.events.onRequestEditRights;
|
_config.editorConfig.canRequestEditRights = _config.events && !!_config.events.onRequestEditRights;
|
||||||
|
_config.frameEditorId = placeholderId;
|
||||||
|
|
||||||
var onMouseUp = function (evt) {
|
var onMouseUp = function (evt) {
|
||||||
_processMouse(evt);
|
_processMouse(evt);
|
||||||
|
@ -257,7 +258,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
var _onMessage = function(msg) {
|
var _onMessage = function(msg) {
|
||||||
if (msg) {
|
if (msg && msg.frameEditorId == placeholderId) {
|
||||||
var events = _config.events || {},
|
var events = _config.events || {},
|
||||||
handler = events[msg.event],
|
handler = events[msg.event],
|
||||||
res;
|
res;
|
||||||
|
@ -362,7 +363,7 @@
|
||||||
if (target && _checkConfigParams()) {
|
if (target && _checkConfigParams()) {
|
||||||
iframe = createIframe(_config);
|
iframe = createIframe(_config);
|
||||||
target.parentNode && target.parentNode.replaceChild(iframe, target);
|
target.parentNode && target.parentNode.replaceChild(iframe, target);
|
||||||
this._msgDispatcher = new MessageDispatcher(_onMessage, this);
|
var _msgDispatcher = new MessageDispatcher(_onMessage, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -371,6 +372,18 @@
|
||||||
data: <command specific data>
|
data: <command specific data>
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
var _destroyEditor = function(cmd) {
|
||||||
|
var target = document.createElement("div");
|
||||||
|
target.setAttribute('id', placeholderId);
|
||||||
|
|
||||||
|
if (iframe) {
|
||||||
|
_msgDispatcher && _msgDispatcher.unbindEvents();
|
||||||
|
_detachMouseEvents();
|
||||||
|
iframe.parentNode && iframe.parentNode.replaceChild(target, iframe);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
var _sendCommand = function(cmd) {
|
var _sendCommand = function(cmd) {
|
||||||
if (iframe && iframe.contentWindow)
|
if (iframe && iframe.contentWindow)
|
||||||
postMessage(iframe.contentWindow, cmd);
|
postMessage(iframe.contentWindow, cmd);
|
||||||
|
@ -537,7 +550,8 @@
|
||||||
downloadAs : _downloadAs,
|
downloadAs : _downloadAs,
|
||||||
serviceCommand : _serviceCommand,
|
serviceCommand : _serviceCommand,
|
||||||
attachMouseEvents : _attachMouseEvents,
|
attachMouseEvents : _attachMouseEvents,
|
||||||
detachMouseEvents : _detachMouseEvents
|
detachMouseEvents : _detachMouseEvents,
|
||||||
|
destroyEditor : _destroyEditor
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -562,18 +576,26 @@
|
||||||
|
|
||||||
MessageDispatcher = function(fn, scope) {
|
MessageDispatcher = function(fn, scope) {
|
||||||
var _fn = fn,
|
var _fn = fn,
|
||||||
_scope = scope || window;
|
_scope = scope || window,
|
||||||
|
eventFn = function(msg) {
|
||||||
|
_onMessage(msg);
|
||||||
|
};
|
||||||
|
|
||||||
var _bindEvents = function() {
|
var _bindEvents = function() {
|
||||||
if (window.addEventListener) {
|
if (window.addEventListener) {
|
||||||
window.addEventListener("message", function(msg) {
|
window.addEventListener("message", eventFn, false)
|
||||||
_onMessage(msg);
|
|
||||||
}, false)
|
|
||||||
}
|
}
|
||||||
else if (window.attachEvent) {
|
else if (window.attachEvent) {
|
||||||
window.attachEvent("onmessage", function(msg) {
|
window.attachEvent("onmessage", eventFn);
|
||||||
_onMessage(msg);
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
var _unbindEvents = function() {
|
||||||
|
if (window.removeEventListener) {
|
||||||
|
window.removeEventListener("message", eventFn, false)
|
||||||
|
}
|
||||||
|
else if (window.detachEvent) {
|
||||||
|
window.detachEvent("onmessage", eventFn);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -591,6 +613,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
_bindEvents.call(this);
|
_bindEvents.call(this);
|
||||||
|
|
||||||
|
return {
|
||||||
|
unbindEvents: _unbindEvents
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function getBasePath() {
|
function getBasePath() {
|
||||||
|
@ -663,6 +689,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.frameEditorId)
|
||||||
|
params += "&frameEditorId=" + config.frameEditorId;
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
@ -100,6 +100,7 @@ if (Common === undefined) {
|
||||||
var _postMessage = function(msg) {
|
var _postMessage = function(msg) {
|
||||||
// TODO: specify explicit origin
|
// TODO: specify explicit origin
|
||||||
if (window.parent && window.JSON) {
|
if (window.parent && window.JSON) {
|
||||||
|
msg.frameEditorId = window.frameEditorId;
|
||||||
window.parent.postMessage(window.JSON.stringify(msg), "*");
|
window.parent.postMessage(window.JSON.stringify(msg), "*");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
@ -112,6 +112,7 @@ define([
|
||||||
this.menuCls = me.options.menuCls;
|
this.menuCls = me.options.menuCls;
|
||||||
this.menuStyle = me.options.menuStyle;
|
this.menuStyle = me.options.menuStyle;
|
||||||
this.template = me.options.template || me.template;
|
this.template = me.options.template || me.template;
|
||||||
|
this.itemsTemplate = me.options.itemsTemplate;
|
||||||
this.hint = me.options.hint;
|
this.hint = me.options.hint;
|
||||||
this.editable = me.options.editable;
|
this.editable = me.options.editable;
|
||||||
this.disabled = me.options.disabled;
|
this.disabled = me.options.disabled;
|
||||||
|
@ -134,15 +135,22 @@ define([
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (!me.rendered) {
|
if (!me.rendered) {
|
||||||
|
var items = this.store.toJSON();
|
||||||
this.cmpEl = $(this.template({
|
this.cmpEl = $(this.template({
|
||||||
id : this.id,
|
id : this.id,
|
||||||
cls : this.cls,
|
cls : this.cls,
|
||||||
style : this.style,
|
style : this.style,
|
||||||
menuCls : this.menuCls,
|
menuCls : this.menuCls,
|
||||||
menuStyle : this.menuStyle,
|
menuStyle : this.menuStyle,
|
||||||
items : this.store.toJSON(),
|
items : items,
|
||||||
scope : me
|
scope : me
|
||||||
}));
|
}));
|
||||||
|
if (this.itemsTemplate)
|
||||||
|
this.cmpEl.find('ul').append(
|
||||||
|
$(this.itemsTemplate({
|
||||||
|
items : items,
|
||||||
|
scope : me
|
||||||
|
})));
|
||||||
|
|
||||||
if (parentEl) {
|
if (parentEl) {
|
||||||
this.setElement(parentEl, false);
|
this.setElement(parentEl, false);
|
||||||
|
@ -274,7 +282,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.scroller)
|
if (this.scroller)
|
||||||
this.scroller.update();
|
this.scroller.update({alwaysVisibleY: this.scrollAlwaysVisible});
|
||||||
|
|
||||||
this.trigger('show:after', this, e);
|
this.trigger('show:after', this, e);
|
||||||
},
|
},
|
||||||
|
@ -441,7 +449,7 @@ define([
|
||||||
return this.rendered ? this._input.val() : null;
|
return this.rendered ? this._input.val() : null;
|
||||||
},
|
},
|
||||||
|
|
||||||
setValue: function(value) {
|
setValue: function(value, defValue) {
|
||||||
if (!this.rendered)
|
if (!this.rendered)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -454,7 +462,7 @@ define([
|
||||||
this.setRawValue(this._selectedItem.get(this.displayField));
|
this.setRawValue(this._selectedItem.get(this.displayField));
|
||||||
$('#' + this._selectedItem.get('id'), $(this.el)).addClass('selected');
|
$('#' + this._selectedItem.get('id'), $(this.el)).addClass('selected');
|
||||||
} else {
|
} else {
|
||||||
this.setRawValue(value);
|
this.setRawValue((defValue!==undefined) ? defValue : value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -529,14 +537,21 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onResetItems: function() {
|
onResetItems: function() {
|
||||||
$(this.el).find('ul').html(_.template([
|
if (this.itemsTemplate) {
|
||||||
'<% _.each(items, function(item) { %>',
|
$(this.el).find('ul').html( $(this.itemsTemplate({
|
||||||
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem"><%= scope.getDisplayValue(item) %></a></li>',
|
items: this.store.toJSON(),
|
||||||
'<% }); %>'
|
scope: this
|
||||||
].join(''), {
|
})));
|
||||||
items: this.store.toJSON(),
|
} else {
|
||||||
scope: this
|
$(this.el).find('ul').html(_.template([
|
||||||
}));
|
'<% _.each(items, function(item) { %>',
|
||||||
|
'<li id="<%= item.id %>" data-value="<%= item.value %>"><a tabindex="-1" type="menuitem"><%= scope.getDisplayValue(item) %></a></li>',
|
||||||
|
'<% }); %>'
|
||||||
|
].join(''), {
|
||||||
|
items: this.store.toJSON(),
|
||||||
|
scope: this
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
if (!_.isUndefined(this.scroller)) {
|
if (!_.isUndefined(this.scroller)) {
|
||||||
this.scroller.destroy();
|
this.scroller.destroy();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
@ -101,7 +101,8 @@ define([
|
||||||
id: Common.UI.getId(),
|
id: Common.UI.getId(),
|
||||||
selected: false,
|
selected: false,
|
||||||
allowSelected: true,
|
allowSelected: true,
|
||||||
value: null
|
value: null,
|
||||||
|
disabled: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -142,6 +143,7 @@ define([
|
||||||
el.off('click').on('click', _.bind(this.onClick, this));
|
el.off('click').on('click', _.bind(this.onClick, this));
|
||||||
el.off('dblclick').on('dblclick', _.bind(this.onDblClick, this));
|
el.off('dblclick').on('dblclick', _.bind(this.onDblClick, this));
|
||||||
el.off('contextmenu').on('contextmenu', _.bind(this.onContextMenu, this));
|
el.off('contextmenu').on('contextmenu', _.bind(this.onContextMenu, this));
|
||||||
|
el.toggleClass('disabled', this.model.get('disabled'));
|
||||||
|
|
||||||
if (!_.isUndefined(this.model.get('cls')))
|
if (!_.isUndefined(this.model.get('cls')))
|
||||||
el.addClass(this.model.get('cls'));
|
el.addClass(this.model.get('cls'));
|
||||||
|
@ -159,10 +161,14 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onClick: function(e) {
|
onClick: function(e) {
|
||||||
|
if (this.model.get('disabled')) return false;
|
||||||
|
|
||||||
this.trigger('click', this, this.model, e);
|
this.trigger('click', this, this.model, e);
|
||||||
},
|
},
|
||||||
|
|
||||||
onDblClick: function(e) {
|
onDblClick: function(e) {
|
||||||
|
if (this.model.get('disabled')) return false;
|
||||||
|
|
||||||
this.trigger('dblclick', this, this.model, e);
|
this.trigger('dblclick', this, this.model, e);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -46,12 +46,19 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
margin: 2px 4px 4px;
|
margin: 2px 4px 4px;
|
||||||
cursor: pointer;
|
|
||||||
|
&:not(.disabled) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
.box-shadow(0 0 0 1px @gray);
|
.box-shadow(0 0 0 1px @gray);
|
||||||
|
|
||||||
&:hover,
|
&:hover:not(.disabled),
|
||||||
&.selected {
|
&.selected:not(.disabled) {
|
||||||
.box-shadow(0 0 0 2px @primary);
|
.box-shadow(0 0 0 2px @primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,6 +239,8 @@
|
||||||
loading = 'Loading...',
|
loading = 'Loading...',
|
||||||
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null;
|
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null;
|
||||||
|
|
||||||
|
window.frameEditorId = params["frameEditorId"];
|
||||||
|
|
||||||
if ( lang == 'de') loading = 'Ladevorgang...';
|
if ( lang == 'de') loading = 'Ladevorgang...';
|
||||||
else if ( lang == 'es') loading = 'Cargando...';
|
else if ( lang == 'es') loading = 'Cargando...';
|
||||||
else if ( lang == 'fr') loading = 'Chargement en cours...';
|
else if ( lang == 'fr') loading = 'Chargement en cours...';
|
||||||
|
|
|
@ -231,6 +231,8 @@
|
||||||
loading = 'Loading...',
|
loading = 'Loading...',
|
||||||
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null;
|
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null;
|
||||||
|
|
||||||
|
window.frameEditorId = params["frameEditorId"];
|
||||||
|
|
||||||
if ( lang == 'de') loading = 'Ladevorgang...';
|
if ( lang == 'de') loading = 'Ladevorgang...';
|
||||||
else if ( lang == 'es') loading = 'Cargando...';
|
else if ( lang == 'es') loading = 'Cargando...';
|
||||||
else if ( lang == 'fr') loading = 'Chargement en cours...';
|
else if ( lang == 'fr') loading = 'Chargement en cours...';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* (c) Copyright Ascensio System Limited 2010-2016
|
* (c) Copyright Ascensio System Limited 2010-2017
|
||||||
*
|
*
|
||||||
* This program is a free software product. You can redistribute it and/or
|
* This program is a free software product. You can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue