1
0
mirror of synced 2024-11-22 13:06:08 +03:00

fix demo for loading data via function.

This commit is contained in:
Igor Vaynberg 2013-05-08 18:07:52 -07:00
parent c67485c5c8
commit 38c09fe7cf
3 changed files with 10 additions and 2 deletions

View File

@ -187,7 +187,7 @@ $("#e10_3").select2({
formatResult: format
});
$("#e10_4").select2({
data:function() { return { results: data }; },
data:function() { return { text:'tag', results: data }; },
formatSelection: format,
formatResult: format
});

@ -1 +1 @@
Subproject commit 92ceb93e9373560f522c1344627a9ddfbc634af6
Subproject commit 5762b85dd2a7cda5867355f28f07ac0646001070

View File

@ -169,5 +169,13 @@
});
</script>
<input type="text" size="width:300px" id="tags"/>
<script>
$(function() {
$("#tags").select2({tags:["one","two","three"]})
})
</script>
</body>
</html>