Fix cross-domain issues
This commit is contained in:
parent
087f612b37
commit
84fb4214d7
6 changed files with 13 additions and 8 deletions
|
|
@ -43,6 +43,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<script src="assets/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="assets/js/iourl.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var q = "";
|
||||
$("#login").click(function() {
|
||||
|
|
@ -52,7 +53,7 @@
|
|||
});
|
||||
|
||||
function refresh() {
|
||||
$.getJSON("api/json/listloaded?" + q, function(data) {
|
||||
$.getJSON(IO_URL+"/api/json/listloaded?"+q+"&callback=?", function(data) {
|
||||
var host = document.location + "";
|
||||
host = host.substring(0, host.indexOf("/widget.html"));
|
||||
if(data.error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue