Commit 99d5838f authored by Phil Hughes's avatar Phil Hughes

Only render the list if it is visible

parent 3a54128d
...@@ -58,7 +58,10 @@ require('../window')(function(w){ ...@@ -58,7 +58,10 @@ require('../window')(function(w){
dataLoadingTemplate.outerHTML = self.listTemplate; dataLoadingTemplate.outerHTML = self.listTemplate;
} }
} }
hook.list[config.method].call(hook.list, d);
if (!hook.list.hidden) {
hook.list[config.method].call(hook.list, d);
}
}).catch(function(e) { }).catch(function(e) {
throw new droplabAjaxException(e.message || e); throw new droplabAjaxException(e.message || e);
}); });
...@@ -76,4 +79,4 @@ module.exports = function(callback) { ...@@ -76,4 +79,4 @@ module.exports = function(callback) {
}; };
},{}]},{},[1])(1) },{}]},{},[1])(1)
}); });
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment