Explorar o código

Goofed, changed disabled to locked.

Todd Rafferty %!s(int64=12) %!d(string=hai) anos
pai
achega
1d4ea633aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2070,7 +2070,7 @@ the specific language governing permissions and limitations under the Apache Lic
         },
 
         addSelectedChoice: function (data) {
-            var enableChoice = !data.disabled,
+            var enableChoice = !data.locked,
                 enabledItem = $(
                     "<li class='select2-search-choice'>" +
                     "    <div></div>" +