Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/uComponents.DataTypes/UrlPicker/UrlPickerScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Date modified: 15th of March, 2011
url: settings.AjaxUploadHandlerUrl + "?" + settings.AjaxUploadHandlerGuid + "_Id=" + settings.UniquePropertyId,
success: function (responseText) {
// Strip any <pre> tags and parse the JSON
var response = jQuery.parseJSON(responseText.replace(/<(\/)?pre[^>]*>/gi, ""));
var response = typeof responseText === "string" ? jQuery.parseJSON(responseText.replace(/<(\/)?pre[^>]*>/gi, "")) : responseText;

// Check for errors, if there are none do a report on files saved
if (response.statusCode !== 200) {
Expand Down