Merge branch 'hotfix/2.4.1'

This commit is contained in:
Yuri Kuznetsov
2014-08-20 15:51:37 +03:00
5 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -27,7 +27,7 @@
this.type = type || 'list';
this.dateTime = dateTime;
this.data = this.default = defaultData || {
this.data = this.defaultData = defaultData || {
textFilter: '',
bool: {},
basic: {name: true},
@@ -99,7 +99,7 @@
},
loadStored: function () {
this.data = this.storage.get(this.type + 'Search', this.scope) || _.clone(this.default);
this.data = this.storage.get(this.type + 'Search', this.scope) || _.clone(this.defaultData);
return this;
},
@@ -119,7 +119,7 @@
},
reset: function () {
this.data = _.clone(this.default);
this.data = _.clone(this.defaultData);
if (this.storage) {
this.storage.clear(this.type + 'Search', this.scope);
}
+3 -3
View File
@@ -23,7 +23,7 @@
var Dialog = function (options) {
options = options || {};
this.class = 'dialog';
this.className = 'dialog';
this.backdrop = 'static';
this.closeButton = true;
this.header = false;
@@ -36,7 +36,7 @@
this.container = 'body'
this.onRemove = function () {};
var params = ['class', 'backdrop', 'closeButton', 'header', 'body', 'width', 'height', 'buttons', 'removeOnClose', 'graggable', 'container', 'onRemove'];
var params = ['className', 'backdrop', 'closeButton', 'header', 'body', 'width', 'height', 'buttons', 'removeOnClose', 'graggable', 'container', 'onRemove'];
params.forEach(function (param) {
if (param in options) {
this[param] = options[param];
@@ -66,7 +66,7 @@
this.contents = '<div class="modal-dialog"><div class="modal-content">' + this.contents + '</div></div>'
$('<div />').attr('id', this.id)
.attr('class', this.class + ' modal')
.attr('class', this.className + ' modal')
.attr('role', 'dialog')
.attr('tabindex', '-1')
.html(this.contents)
@@ -238,6 +238,7 @@ Espo.define('Views.Fields.AttachmentMultiple', 'Views.Fields.Base', function (De
url: 'Attachment/action/upload',
data: e.target.result,
contentType: 'multipart/encrypted',
timeout: 0,
}).done(function (data) {
attachment.id = data.attachmentId;
+1
View File
@@ -226,6 +226,7 @@ Espo.define('Views.Fields.File', 'Views.Fields.Link', function (Dep) {
url: 'Attachment/action/upload',
data: e.target.result,
contentType: 'multipart/encrypted',
timeout: 0,
}).done(function (data) {
attachment.id = data.attachmentId;
attachment.set('name', file.name);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "espocrm",
"version": "2.4.0",
"version": "2.4.1",
"description": "",
"main": "index.php",
"repository": "",