From 9c49e12a911c4de6895d93bac7df6e7d28bd4ab4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 22 Nov 2024 15:18:58 +0000 Subject: [PATCH] CI run 606 pushed to gh-pages --- demo/trunk/src/gui/custom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/trunk/src/gui/custom.js b/demo/trunk/src/gui/custom.js index b8d5c0dc..f6c5a1fb 100644 --- a/demo/trunk/src/gui/custom.js +++ b/demo/trunk/src/gui/custom.js @@ -92,7 +92,8 @@ dwvjq.gui.Slider = function (app) { * Initialise the slider HTML. */ this.initialise = function () { - var dataRange = app.getData(0).image.getDataRange(); + var dataId0 = app.getDataIds()[0]; + var dataRange = app.getData(dataId0).image.getDataRange(); var min = dataRange.min; var max = dataRange.max; @@ -115,4 +116,4 @@ dwvjq.gui.setSliderChangeHandler = function (sliderInput, handler) { $(document).on('pagecreate', '#tags_page', function () { $('#' + sliderInput.id).on('change', handler); }); -}; \ No newline at end of file +};