This is a combination of 33 commits.

- Squashed Pull request #1730
- Squashed Pull request #1741
- Squashed Pull request #1742
- Squash merge branch 4.0
- Squashed Pull request #1744
- Squashed Pull request #1746
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed Pull request #1758
- Avoid using imagine/imagine alias as it is causing install issues
- Squashed merge branch 4.0
- Squashed Pull request #1763
- Squashed merge branch 4.0
- Squash of 6 commits
- Squashed merge branch 4.0
- This is a combination of 2 commits.
- Squashed Pull request #1775
- Squashed Pull request #1777
- Squashed Pull request #1779
- Squashed Pull request #1780
- Squashed Pull request #1782
- Adds a Pull request template
- Squased Pull request #1783
- Squash Pull request #1786
- Squashed Pull request #1796
- Squashed merge branch 4.0
- Squash Pull request #1791
- Squashed merge branch 4.0
- Squashed Pull request #1808
- Squashed Pull request #1811
- Squashed Pull request #1809
This commit is contained in:
Benoît Burnichon
2016-04-19 19:21:04 +02:00
parent 01b06c5144
commit 1e18b3e69f
179 changed files with 5652 additions and 3030 deletions

View File

@@ -73,11 +73,11 @@ define([
event.preventDefault();
var $this = this;
var link = $(event.currentTarget);
var url = link.attr('action') || 'GET';
var url = link.attr('action');
if(url) {
$.ajax({
type: link.attr('method'),
type: link.attr('method') || 'GET',
url: url,
data: link.serializeArray(),
success: function (data) {

View File

@@ -0,0 +1,39 @@
function searchEngineConfigurationFormInit(indexExists) {
$("#dropIndexConfirmDialog").dialog({
autoOpen: false,
modal: true,
title: "Drop index",
buttons: [
{
text: "Ok",
click: function () {
$("#ElasticSearchDropIndexForm").submit();
$("#dropIndexConfirmDialog").dialog("close");
}
},
{
text: "Cancel",
click: function () {
$("#dropIndexConfirmDialog").dialog("close");
}
}
]
});
if(indexExists) {
$("BUTTON[data-id=esSettingsCreateIndexButton]").hide();
$("BUTTON[data-id=esSettingsDropIndexButton]").show().bind("click", function (event) {
event.preventDefault();
$("#dropIndexConfirmDialog").dialog("open");
return false;
});
}
else {
$("BUTTON[data-id=esSettingsDropIndexButton]").hide();
$("BUTTON[data-id=esSettingsCreateIndexButton]").show().bind("click", function (event) {
event.preventDefault();
$("#ElasticSearchCreateIndexForm").submit();
return false;
});
}
}