GithubHelp home page GithubHelp logo

vafada / chosen-dojo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harvesthq/chosen

10.0 2.0 4.0 1.14 MB

Dojo Port of Chosen (https://github.com/harvesthq/chosen)

Home Page: http://vafada.github.com/chosen-dojo/

License: Other

JavaScript 72.79% CSS 27.21%

chosen-dojo's Introduction

chosen-dojo's People

Contributors

aziz avatar binarycode avatar danillonunes avatar dchest avatar grandall avatar h3adache avatar hkdobrev avatar jcsrb avatar jerrett avatar lcamel avatar malixsys avatar marknadig avatar mikefrey avatar mixonic avatar nagyman avatar ndbroadbent avatar nikosd avatar parshap avatar paulredmond avatar peteruhnak avatar pfiller avatar rk avatar sd avatar seutje avatar stof avatar stubben avatar thomasf avatar tjschuck avatar toots avatar vafada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chosen-dojo's Issues

SyntaxError: An invalid or illegal string was specified

Hi!

I have a problem (and a solution). When I use the chosen-dojo in a application I've built I get the error message:
"SyntaxError: An invalid or illegal string was specified".
In the application I use Dojo 1.9.3 and the select is part of a template for a widget (which extends "_WidgetBase, _Container, _LayoutWidget, _TemplatedMixin, _WidgetsInTemplateMixin").

I tried the index.html file that comes with chosen-dojo and updated dojo to 1.9.3 and everything worked ok.
But not in my application. I'm not shure what it is that's causing this, but i have found a solution.

in chosen-dojo.js row 16:
dojo.query('>', this).forEach(function (child) {

if I change that line to:
dojo.query('option', this).forEach(function (child) {

everything seems to be working ok.
Is this a change that can/should be implemented to this respository?

Cuplicates created after liszt:updated published on multiselect

if you publish the liszt:updated event on a multiselect object that has a selection it will get added every time the publish is called. easy way to replicate this is on index.html to change the multi_select_change. if you make 2 selections you will see the output gets duplicated multiple times (after 2nd select).

        function multiple_select_change() {
        var select_object = dojo.byId('select2');
        var select_div = dojo.byId('multiple_msg');

        var selected_values = [];

        for (x=0;x<=select_object.length;x++)
         {
            if (select_object[x] && select_object[x].selected)
            {
             selected_values.push(select_object[x].value);
            }
         }

        select_div.innerHTML = 'Selected value = ' + selected_values;
// added to cause problems
        dojo.publish('liszt:updated', [select_object]); 
        dojo.publish('liszt:updated', [select_object]); 
        }

choice destroy issue

steps to reproduce the issue.

  1. select first item.
  2. select second item.
  3. remove anyone item from list.
  4. then click on search items textbox to add more item.
  5. list did not get populated on click but if you click again list get populated.

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.