소스 검색

Show same options in example as used in demo

The templateSelection option was used in the demo, but was not shown in the example code.
This commit fixes it, so that copy&pasting works as expected.
Tobias Leich 8 년 전
부모
커밋
4ee9f7b5e2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      docs/_includes/examples/themes-templating-responsive-design.html

+ 2 - 1
docs/_includes/examples/themes-templating-responsive-design.html

@@ -69,7 +69,8 @@ function formatState (state) {
 };
 
 $(".js-example-templating").select2({
-  templateResult: formatState
+  templateResult: formatState,
+  templateSelection: formatState
 });
 {% endhighlight %}