How I can override alert from ImageBrowser from f.e "invalidFileType" ?
Because it is native web browser popup.
01.
$(
"#editor"
).kendoImageBrowser({
02.
messages: {
03.
deleteFile:
"@Html.Raw(ImageBrowser.DeleteFile.JsEscape())"
,
04.
directoryNotFound:
"@Html.Raw(ImageBrowser.DirectoryNotFound.JsEscape())"
,
05.
emptyFolder:
"@Html.Raw(ImageBrowser.EmptyFolder.JsEscape())"
,
06.
invalidFileType:
"@Html.Raw(ImageBrowser.InvalidFileType.JsEscape())"
,
07.
orderBy:
"@Html.Raw(ImageBrowser.OrderBy.JsEscape())"
,
08.
orderByName:
"@Html.Raw(ImageBrowser.OrderByName.JsEscape())"
,
09.
orderBySize:
"@Html.Raw(ImageBrowser.OrderBySize.JsEscape())"
,
10.
overwriteFile:
"@Html.Raw(ImageBrowser.OverwriteFile.JsEscape())"
,
11.
uploadFile:
"@Html.Raw(ImageBrowser.UploadFile.JsEscape())"
,
12.
dropFilesHere:
"@Html.Raw(ImageBrowser.DropFilesHere.JsEscape())"
,
13.
search:
"@Html.Raw(ImageBrowser.Search.JsEscape())"
14.
},
15.
transport: {
16.
type:
"imagebrowser-aspnetmvc"
,
17.
read:
"@Url.Action("
ReadES
", "
ImageBrowser
", new {id = Model.Id})"
,
18.
destroy: {
19.
url:
"@Url.Action("
DestroyES
", "
ImageBrowser
", new {id = Model.Id})"
,
20.
type:
"POST"
21.
},
22.
create: {
23.
url:
"@Url.Action("
CreateES
", "
ImageBrowser
", new {id = Model.Id})"
,
24.
type:
"POST"
25.
},
26.
thumbnailUrl:
function
(path, file) {
27.
var
url =
"@Url.Action("
ThumbnailES
", "
ImageBrowser
", new { id = Model.Id })"
+
"?path="
+ path + file;
28.
return
url;
29.
},
30.
uploadUrl:
"@Url.Action("
UploadES
", "
ImageBrowser
", new { id = Model.Id })"
,
31.
imageUrl:
"@Url.Action("
Image
", "
ImageBrowser
", new {path = "
{0}
", id = Model.Id})"
32.
}
33.
});