resolution (tuples) gets automatically determined by screen width
This commit is contained in:
parent
9b30b6645e
commit
92a0b4dbb5
2 changed files with 8 additions and 4 deletions
|
@ -49,8 +49,8 @@ vz.wui.init = function() {
|
|||
$('#controls').buttonset();
|
||||
|
||||
// tuple resolution
|
||||
var tup = $('#tuples');
|
||||
tup.val(vz.options.tuples).change(function() {
|
||||
vz.options.tuples = Math.round($('#flot').width() / 3);
|
||||
$('#tuples').val(vz.options.tuples).change(function() {
|
||||
vz.options.tuples = $(this).val();
|
||||
vz.entities.loadData();
|
||||
});
|
||||
|
@ -429,7 +429,7 @@ vz.load = function(context, identifier, data, success) {
|
|||
data: data,
|
||||
error: function(xhr) {
|
||||
json = JSON.parse(xhr.responseText);
|
||||
vz.errorDialog(xhr.statusText, json.exception.message, xhr.status); // TODO error vs. exception
|
||||
vz.wui.dialogs.error(xhr.statusText, json.exception.message, xhr.status); // TODO error vs. exception
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -63,7 +63,11 @@ $(document).ready(function() {
|
|||
vz.options.save();
|
||||
});
|
||||
|
||||
$(window).resize(vz.drawPlot);
|
||||
$(window).resize(function() {
|
||||
vz.options.tuples = Math.round($('#flot').width() / 3);
|
||||
$('#tuples').val(vz.options.tuples);
|
||||
vz.drawPlot();
|
||||
});
|
||||
|
||||
// parse uuids & options from cookie
|
||||
vz.uuids.load();
|
||||
|
|
Loading…
Add table
Reference in a new issue