Giter VIP home page Giter VIP logo

Comments (3)

naumanarif21 avatar naumanarif21 commented on August 16, 2024

Django 3.1
django-sortedm2m==3.0.2

Uncaught ReferenceError: windowname_to_id is not defined
    at window.<computed> (/static/sortedm2m/widget.js:105)
    at popup_response.js:13

Problematic call: https://github.com/jazzband/django-sortedm2m/blob/master/sortedm2m/static/sortedm2m/widget.js#L105

Related change on Django: django/django@f982f0b

Hey @fatalcoder, Did you find any workaround?

from django-sortedm2m.

fatalcoder avatar fatalcoder commented on August 16, 2024

Hi, didn't search for any 'cause it's not a big deal for us. The values were updated, only the window didn't close.

You can always redefine the function that was removed from Django.

   function windowname_to_id(text) {	
        text = text.replace(/__dot__/g, '.');	
        text = text.replace(/__dash__/g, '-');	
        return text;	
    }

and even simplify it to just

function windowname_to_id(text) {		
        return text;	
    }

from django-sortedm2m.

n3rio avatar n3rio commented on August 16, 2024

Hi, im experiencing the same behavior but with a different JS error message:
Screenshot from 2021-05-13 14-43-57
Plus the Delete check box is not showing:
Screenshot from 2021-05-13 14-45-03

from django-sortedm2m.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.