Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
ng.inx export-ignore
README.md export-ignore
LICENSE export-ignore

# Store every text file with LF; the working tree matches on every platform.
* text=auto eol=lf

# Windows batch scripts must keep CRLF; cmd.exe can misparse LF-only files.
*.bat text eol=crlf
*.cmd text eol=crlf
2 changes: 1 addition & 1 deletion assets/.thumbs/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Unauthorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
2 changes: 1 addition & 1 deletion assets/backup/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Unauthorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
2 changes: 1 addition & 1 deletion assets/cache/images/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Unauthorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
108 changes: 54 additions & 54 deletions assets/js/easy-ui/editors/imageBrowser.js
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
(function($) {
$.extend($.fn.datagrid.defaults.editors, {
imageBrowser: {
thumb_prefix: '',
noImage: '',
init: function (container, options) {
var input = $('<input type="hidden">').appendTo(container);
var image = $('<a href="javascript:void(0)"><img style="' + options.css + '" src=""></a>').appendTo(container);
this.thumb_prefix = options.thumb_prefix;
this.noImage = options.noImage;
image.click({
target: this,
field: input,
browserUrl: options.browserUrl,
opener: options.opener
}, this.browse);
return input;
},
destroy: function (target) {
$(target).remove();
},
getValue: function (target) {
return $(target).val();
},
setValue: function (target, value) {
$(target).val(value);
$(target).parent().find('img').attr('src', (value == '' ? this.noImage : this.thumb_prefix + value));
},
resize: function (target, width) {
return;
},
browse: function (e) {
var width = screen.width * 0.5;
var height = screen.height * 0.5;
var iLeft = (screen.width - width) / 2;
var iTop = (screen.height - height) / 2;
var sOptions = 'toolbar=no,status=no,resizable=yes,dependent=yes';
var url = e.data.browserUrl + '&opener=' + e.data.opener;
sOptions += ',width=' + width;
sOptions += ',height=' + height;
sOptions += ',left=' + iLeft;
sOptions += ',top=' + iTop;
window.KCFinder = {};
window.KCFinder = {
callBack: function (url) {
window.KCFinder = null;
e.data.target.setValue(e.data.field, url);
}
};
var oWindow = window.open(url, 'ImageBrowser', sOptions);
}
}
});
})(jQuery);
(function($) {
$.extend($.fn.datagrid.defaults.editors, {
imageBrowser: {
thumb_prefix: '',
noImage: '',
init: function (container, options) {
var input = $('<input type="hidden">').appendTo(container);
var image = $('<a href="javascript:void(0)"><img style="' + options.css + '" src=""></a>').appendTo(container);
this.thumb_prefix = options.thumb_prefix;
this.noImage = options.noImage;
image.click({
target: this,
field: input,
browserUrl: options.browserUrl,
opener: options.opener
}, this.browse);
return input;
},
destroy: function (target) {
$(target).remove();
},
getValue: function (target) {
return $(target).val();
},
setValue: function (target, value) {
$(target).val(value);
$(target).parent().find('img').attr('src', (value == '' ? this.noImage : this.thumb_prefix + value));
},
resize: function (target, width) {
return;
},
browse: function (e) {
var width = screen.width * 0.5;
var height = screen.height * 0.5;
var iLeft = (screen.width - width) / 2;
var iTop = (screen.height - height) / 2;
var sOptions = 'toolbar=no,status=no,resizable=yes,dependent=yes';
var url = e.data.browserUrl + '&opener=' + e.data.opener;
sOptions += ',width=' + width;
sOptions += ',height=' + height;
sOptions += ',left=' + iLeft;
sOptions += ',top=' + iTop;
window.KCFinder = {};
window.KCFinder = {
callBack: function (url) {
window.KCFinder = null;
e.data.target.setValue(e.data.field, url);
}
};
var oWindow = window.open(url, 'ImageBrowser', sOptions);
}
}
});
})(jQuery);
Loading
Loading