Issue in Field Configure JS

webteam's picture
webteam
Mon, 03/30/2015 - 10:55
#1
Issue in Field Configure JS

Hi

First of all, thank you for this great module!

The file it concerns:
md_slider/js/md-slider-field-configure.js
Version: 7.x-2.17

Problem:
You check the wrong value.

//// Original ////
Lines 21-23:

var sliderId = $(this).val(),
sliderId = $(".fake-select-slider").find("option[value=" + sliderId + "]").data('sliderid');
if (sliderId != -1) { ...

//// END Original ////

//// Bugfix-Example ////
Lines 21-23:

var sliderId = $(this).val();
if (sliderId != -1) {
var sliderId = $(".fake-select-slider").find("option[value=" + sliderId + "]").data('sliderid');

//// END Bugfix-Example ////

You also can check for "undefined":

if ( typeof obj !== "undefined" ) ... You choose! :)

Thanks you.
Regards,
The Globonet-Team

cindy's picture
cindy
Tue, 03/31/2015 - 06:34

Hi,

Thank you very much for your feedback. We will check again.

Should you have any ideas/suggestions, feel free to tell us. Creative and innovative thinkings are always welcome

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.