Refactoring 4 life

This commit is contained in:
Tom MacWright 2013-06-10 16:00:36 -07:00 committed by John Firebaugh
parent 3a6c476833
commit 64f5b3f511
6 changed files with 52 additions and 43 deletions

View file

@ -8,23 +8,17 @@ $(document).ready(function () {
$("#linkloader").load(function () { loaded = true; });
if (select) {
$("#linkloader").attr("src", "http://127.0.0.1:8111/load_and_zoom?" +
querystring.stringify({
left: left,
top: top,
right: right,
bottom: bottom,
select: select
}));
} else {
$("#linkloader").attr("src", "http://127.0.0.1:8111/load_and_zoom?" + querystring.stringify({
left: left,
top: top,
right: right,
bottom: bottom
}));
}
var query = {
left: left,
top: top,
right: right,
bottom: bottom,
select: select
};
if (select) query.select = select;
$("#linkloader").attr("src", "http://127.0.0.1:8111/load_and_zoom?" +
querystring.stringify(query));
setTimeout(function () {
if (!loaded) alert(I18n.t('site.index.remote_failed'));