mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
porting PHRAS-1578/PHRAS-1579/PHRAS-1621/PHRAS-1675/PHRAS-1404/PHRAS-1336 to 4.1
This commit is contained in:
@@ -37,3 +37,32 @@ function searchEngineConfigurationFormInit(indexExists) {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$("input[data-class='inline']").parent('div').css('display','inline-block');
|
||||
$("button[data-class='inline']").parent('div').css({'display':'inline-block'});
|
||||
$("button[data-class='inline']").css({'margin-left':'10px', 'margin-bottom': '10px'});
|
||||
//Get setting from index
|
||||
function esSettingFromIndex() {
|
||||
$('#elasticsearch_settings_dumpField').removeClass('hide');
|
||||
var data = {};
|
||||
data.index = $('#elasticsearch_settings_indexName').val();
|
||||
var url = pathGetIndexSettings;
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
data : data,
|
||||
success: function (data) {
|
||||
if (data.success) {
|
||||
$('#elasticsearch_settings_dumpField').text(JSON.stringify(data.response));
|
||||
} else {
|
||||
$('#elasticsearch_settings_dumpField').text(data.message);
|
||||
}
|
||||
}
|
||||
, error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Error XML:\n\n" + jqXHR.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user