Fixed minor bugs

This commit is contained in:
Cheng-Han, Wu 2016-03-16 12:46:29 +08:00
parent b824fc8cf3
commit 85078fd328
2 changed files with 13 additions and 4 deletions

View file

@ -366,6 +366,7 @@ function finishView(view) {
},
dataType: "jsonp",
success: function (data) {
if (!data.query || !data.query.results) return;
var json = data.query.results.json;
var html = json.html;
var ratio = json.height / json.width;