in src/main/resources/SLING-INF/libs/sling/resource-editor/static/js/properties/PropertyController.js [171:194]
PropertyController.prototype.addProperty = function(){
var thisPropertyController = this;
var key = $('#new-property-key').val();
var value = $("#addPropertyDialog .property-editor:visible .property-value").val();
var data = {};
var propertyType = $("#addPropertyDialog .property-editor:visible").attr("data-property-type");
data[key] = value;
data[key+"@TypeHint"] = propertyType;
data["_charset_"] = "utf-8";
$.ajax({
type: 'POST',
"_charset_": "utf-8",
url: location.href,
dataType: "json",
data: data
})
.done(function() {
location.reload();
})
.fail(function(errorJson) {
$('#addPropertyDialog').modal('hide');
thisPropertyController.mainController.displayAlert(errorJson);
});
}