conflict with nextgen gallery
-
i noticed a prob with nextgen gallery.
they use a select to select size, but no formated name like name[id][name], so this make an error :
Uncaught TypeError: Cannot read property ‘2’ of null
Why not to test if array before trying to get the value content?
below if the format of the select.
<select name="thumbsize" id="thumbsize" onchange="var jt = jQuery(this); var szcust = jt.next(".nextgen-thumb-size-custom"); if (jt.val() == "custom") { szcust.find("[name=\"widgets[c144][width]\"]").val("200"); szcust.find("[name=\"widgets[c144][height]\"]").val("150"); szcust.show(); } else { var parts = jt.val().split("x"); szcust.hide(); szcust.find("[name=\"widgets[c144][width]\"]").val(parts[0]); szcust.find("[name=\"widgets[c144][height]\"]").val(parts[1]); }"> <option value="200x150" selected="">200x150</option> <option value="custom">Personnalisé(e)</option></select>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘conflict with nextgen gallery’ is closed to new replies.