diff --git a/sortedm2m/static/sortedm2m/widget.js b/sortedm2m/static/sortedm2m/widget.js index 7f92e2c..dfb631f 100644 --- a/sortedm2m/static/sortedm2m/widget.js +++ b/sortedm2m/static/sortedm2m/widget.js @@ -103,6 +103,12 @@ text = text.replace(/&/g, '&'); return text; } + + function windowname_to_id(text) { + text = text.replace(/__dot__/g, '.'); + text = text.replace(/__dash__/g, '-'); + return text; + } if (window.showAddAnotherPopup) { var django_dismissAddAnotherPopup = window[dismissPopupFnName];