From b054b6f054177bbe53f4b6fc296d6c92b9d1f3c1 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 24 Oct 2012 13:57:48 -0700 Subject: [PATCH] catch up to master. also closes #522 by adding locked item docs --- select2-latest.html | 46 +++++++++++++++++++++++++++++++++++++++++++++ select2-master | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/select2-latest.html b/select2-latest.html index 5aa11530..09afb6a6 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -843,6 +843,52 @@ $("#e18,#e18_2").select2(); +
+ +
+

Lock selections

+

+ In the event that you need to lock certain selections so that they can't be removed by the select2 interface, you can now pass in locked: true with your data. Please note: This also works for incoming values from ajax. +

+

+ +

+
+
+

Example Code

+
+        
+
+
diff --git a/select2-master b/select2-master index 26a3d534..4a363c4b 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit 26a3d5342be488868d96db3d03823777178a709b +Subproject commit 4a363c4b3018a0508064e4eaf81b167ddfabe760