X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fjs%2Funfold-helper.js;h=0d3a54d82c8091d471166f6412da6c61024b4587;hb=ee1403fe15f21c08fcd97f770f64ef44122e2c23;hp=3a76049a6778b8baa0cab31c35ee21d8d7a502b9;hpb=0c6de66411d990fcd28278ec396456203acef805;p=unfold.git diff --git a/unfold/js/unfold-helper.js b/unfold/js/unfold-helper.js index 3a76049a..0d3a54d8 100644 --- a/unfold/js/unfold-helper.js +++ b/unfold/js/unfold-helper.js @@ -25,7 +25,17 @@ var unfold = { return out; }, + get_value: function (value) { + //if(typeof(jQuery(value).attr('value'))!="undefined"){ + if (/.*<\/span>/i.test(value)) { + return jQuery(value).attr('value'); + } else { + return value; + } +} + } // global unfold // xxx tmp - until all plugins are ported -errorDisplay = unfold.errorDisplay; +errorDisplay = unfold.errorDisplay; +get_value = unfold.get_value;