When tested on the associate IP dialog, it appeared that the chosen select box maintained its initial shape; didn't notice anything unusual after reopened.


Sent from my iPhone

On Mar 17, 2014, at 4:35 PM, Kamal Gill <notifications@github.com> wrote:

> In eucaconsole/static/js/pages/landingpage.js:
> 
> > @@ -95,6 +95,19 @@ angular.module('LandingPage', ['CustomFilters', 'ngSanitize'])
> >                      }
> >                 }
> >              });
> > +            $(document).on('close', '[data-reveal]', function () {
> > +                var modal = $(this);
> > +                modal.find('input[type="text"]').val('');
> > +                modal.find('input:checked').attr('checked', false);
> > +                modal.find('textarea').val('');
> > +                modal.find('div.error').removeClass('error');
> > +                var chosenSelect = modal.find('select');
> > +                if( chosenSelect.length > 0 ){
> > +                    chosenSelect.chosen('destroy');
> > +                    chosenSelect.prop('selectedIndex', 0);
> > +                    chosenSelect.chosen();
> Will this unexpectedly destroy the chosen settings (e.g. search_contains, width) initialized on page load?
> 
> —
> Reply to this email directly or view it on GitHub.