git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manifold-core deprecated, keep its -leftovers for further ref
[myslice.git]
/
unfold
/
js
/
unfold-helper.js
diff --git
a/unfold/js/unfold-helper.js
b/unfold/js/unfold-helper.js
index
3a76049
..
0d3a54d
100644
(file)
--- a/
unfold/js/unfold-helper.js
+++ b/
unfold/js/unfold-helper.js
@@
-25,7
+25,17
@@
var unfold = {
return out;
},
return out;
},
+ get_value: function (value) {
+ //if(typeof(jQuery(value).attr('value'))!="undefined"){
+ if (/<span value=['"].*['"]>.*<\/span>/i.test(value)) {
+ return jQuery(value).attr('value');
+ } else {
+ return value;
+ }
+}
+
} // global unfold
// xxx tmp - until all plugins are ported
} // global unfold
// xxx tmp - until all plugins are ported
-errorDisplay = unfold.errorDisplay;
+errorDisplay = unfold.errorDisplay;
+get_value = unfold.get_value;