Fix js outputting sample delimiter
This commit is contained in:
@@ -57,7 +57,7 @@ jQuery(document).ready(function($){
|
|||||||
val = $(this).val();
|
val = $(this).val();
|
||||||
if ( val === undefined ) return true;
|
if ( val === undefined ) return true;
|
||||||
format = $(this).attr("data-example-format");
|
format = $(this).attr("data-example-format");
|
||||||
example = format.replace("__val__", val);
|
example = format.replace(/__val__/g, val);
|
||||||
$(this).siblings(".example").html(example);
|
$(this).siblings(".example").html(example);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user