diff --git a/select2-latest.html b/select2-latest.html index 072deaa7..a7832459 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -193,7 +193,7 @@ $("#e10_3").select2({
  • Infinite Scrolling of Remote/AJAX data
  • Tagging Support
  • Programmatic control
  • -
  • Events: Change
  • +
  • Events
  • Events: Reacting to External Changes
  • Disabled Mode
  • Custom Matcher Function
  • @@ -466,7 +466,7 @@ $("#e2_2").select2({
                     function format(state) {
                         var originalOption = state.element;
    -                    
    +
                         return "<img class='flag' src='images/flags/" + state.id.toLowerCase() + ".png' alt='" + originalOption.data('foo') + "' />" + state.text;
                     }
                 
    @@ -594,7 +594,7 @@ $("#e8_2_close").click(function () { $("#e8_2").select2("close"); }); -
    +
    -

    Change Event

    +

    Events

    -

    Select2 triggers the change event on the original element whenever its value is changed by +

    change event is triggered on the original element whenever its value is changed by the user

    +

    open event is triggered on the original element whenever the dropdown needs to be opened

    @@ -1202,6 +1205,13 @@ $("#tags").select2({

    - +
    +
    +

    open

    +

    Fired when the dropdown is shown.

    +

    The event listener can prevent the opening by calling preventDefault() on the supplied event object.

    +

    +
    +
    diff --git a/select2-master b/select2-master index 9c4a4d1b..9c864f1d 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit 9c4a4d1b8a1bfd703c3dcfb003116bf2d27bfcec +Subproject commit 9c864f1da01bef52c32f9d3c3a8cdd0cc2dadd35