fix forms2 demo, add same origin guard to widget_design_patterns/index.html

This commit is contained in:
j 2012-05-29 11:42:42 +02:00
parent 2223064d35
commit 262d20405e
2 changed files with 5 additions and 5 deletions

View file

@ -6,9 +6,9 @@ Ox.load({UI: {}, Geo:{}, Unicode: {}}, function() {
id: "panel"
})
.appendTo($body),
countries = Ox.sortASCII(Ox.map(Ox.COUNTRIES, function(country) {
countries = Ox.sortASCII(Ox.filter(Ox.map(Ox.COUNTRIES, function(country) {
return country.dissolved ? null : country.name;
}));
})));
objects = {
"Button": [
{
@ -1278,4 +1278,4 @@ Ox.load({UI: {}, Geo:{}, Unicode: {}}, function() {
})
.appendTo($panel);
});
});

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="css/example.css"/>
<script type="text/javascript" src="../../dev/Ox.js"></script>
<script type="text/javascript" src="js/example.js"></script>
<script>window.addEventListener('message', function(e) { eval(e.data); });</script>
<script>window.addEventListener('message', function(e) { e.origin == window.location.origin && eval(e.data); });</script>
</head>
<body></body>
</html>
</html>