mirror of https://github.com/apache/superset.git
Restoring error bubbling
This commit is contained in:
parent
d6b6433d52
commit
4e3d284785
|
@ -6,15 +6,15 @@ px.registerWidget('big_number', function(data_attribute) {
|
|||
|
||||
function render(done) {
|
||||
d3.json(json_callback, function(error, payload){
|
||||
json = payload.data;
|
||||
div.html("");
|
||||
//Define the percentage bounds that define color from red to green
|
||||
div.html("");
|
||||
if (error != null){
|
||||
var err = '<div class="alert alert-danger">' + error.responseText + '</div>';
|
||||
div.html(err);
|
||||
done(payload);
|
||||
return '';
|
||||
}
|
||||
json = payload.data;
|
||||
var color_range = [-1, 1];
|
||||
var compare_pos = -23
|
||||
var target_url = 'd3js.org';
|
||||
|
|
Loading…
Reference in New Issue