catch up to master
This commit is contained in:
parent
491196141c
commit
c90ad9727e
@ -5,8 +5,8 @@ group: navigation
|
|||||||
version: 3.4
|
version: 3.4
|
||||||
---
|
---
|
||||||
|
|
||||||
<link href="select2-master/src/select2.css" rel="stylesheet"/>
|
<link href="select2-master/select2.css" rel="stylesheet"/>
|
||||||
<script src="select2-master/src/select2.js"></script>
|
<script src="select2-master/select2.js"></script>
|
||||||
|
|
||||||
<script id="script_e1">
|
<script id="script_e1">
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2149da3b6b4eb110d7a742fd4126fbdc93ada421
|
Subproject commit d04d127cabacfdaf0a89c32719a65c50c4e09f79
|
@ -10,7 +10,10 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div style="padding: 10px; margin: 10px;">
|
<div style="padding: 10px; margin: 10px;">
|
||||||
|
<br/><br/><br/>
|
||||||
|
<input type="text" size="30"/><br/>
|
||||||
<select id="e4" style="width:300px" class="populate">
|
<select id="e4" style="width:300px" class="populate">
|
||||||
|
<option></option>
|
||||||
<option value="AK">Alaska</option>
|
<option value="AK">Alaska</option>
|
||||||
<option value="HI">Hawaii</option>
|
<option value="HI">Hawaii</option>
|
||||||
<option value="CA">California</option>
|
<option value="CA">California</option>
|
||||||
@ -18,6 +21,7 @@
|
|||||||
<option value="OR">Oregon</option>
|
<option value="OR">Oregon</option>
|
||||||
<option value="WA">Washington</option>
|
<option value="WA">Washington</option>
|
||||||
</select><br/>
|
</select><br/>
|
||||||
|
<input type="text" size="30"/>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@ -27,11 +31,28 @@
|
|||||||
}
|
}
|
||||||
$("#e4").select2({
|
$("#e4").select2({
|
||||||
formatResult: format,
|
formatResult: format,
|
||||||
formatSelection: format
|
formatSelection: format,
|
||||||
|
escapeMarkup: function(m) { return m; },
|
||||||
|
allowClear:true,
|
||||||
|
placeholder: "select a state"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div style="position: absolute; left:0; top:0; background: white; border: 1px solid red;" id="focus-spy">hello there</div>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
var el=$("#focus-spy");
|
||||||
|
$(window).bind("scroll", function(){ el.css({top:$(window).scrollTop()}); });
|
||||||
|
var update=function() {
|
||||||
|
var a=document.activeElement;
|
||||||
|
var b=$(a);
|
||||||
|
el.html("tag: "+a.tagName+" id:"+a.id+" class:"+b.attr("class")+" val:"+b.val());
|
||||||
|
window.setTimeout(update, 100);
|
||||||
|
};
|
||||||
|
update();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user