Commit ec44ab03 authored by Mario Hernandez's avatar Mario Hernandez
Browse files

Resolve #3280424 "Warning alert message"

parent e027065e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -112,6 +112,9 @@ patternkitEditorArray(jQuery, Drupal, JSONEditor);
       JSONEditor.defaults.options.collapse = false;
       JSONEditor.defaults.options.ajax = true;
       JSONEditor.defaults.options.disable_properties = settings.patternkitEditor.disablePropertiesButtons;
       // Overrides alert message when removing an item.
       JSONEditor.defaults.languages.en.button_delete_node_warning = 'Are you sure you want to remove this item?'
       
       // @todo Loop through all editor plugins and add them at runtime.

       // Override how references are resolved.
+3 −1
Original line number Diff line number Diff line
@@ -1135,7 +1135,9 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
        JSONEditor.defaults.options.disable_collapse = false;
        JSONEditor.defaults.options.collapse = false;
        JSONEditor.defaults.options.ajax = true;
        JSONEditor.defaults.options.disable_properties = settings.patternkitEditor.disablePropertiesButtons; // @todo Loop through all editor plugins and add them at runtime.
        JSONEditor.defaults.options.disable_properties = settings.patternkitEditor.disablePropertiesButtons;
        JSONEditor.defaults.languages.en.button_delete_node_warning = 'Are you sure you want to remove this item?'; // Overrides alert message when removing an item.
        // @todo Loop through all editor plugins and add them at runtime.
        // Override how references are resolved.
        JSONEditor.prototype._loadExternalRefs = function (schema, callback) {