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
js helper function 'get_value' not defined globally anymore, use unfold.get_velue...
[myslice.git]
/
unfold
/
static
/
js
/
unfold-helper.js
diff --git
a/unfold/static/js/unfold-helper.js
b/unfold/static/js/unfold-helper.js
index
f5adb1b
..
1564e6f
100644
(file)
--- a/
unfold/static/js/unfold-helper.js
+++ b/
unfold/static/js/unfold-helper.js
@@
-20,10
+20,6
@@
var unfold = {
return "<button class='unfold-error btn btn-danger'>"+text+"</button>";
},
return "<button class='unfold-error btn btn-danger'>"+text+"</button>";
},
- errorDisplay : function (error) {
- return '<div class="error"><dl id="system-message"><dt class="error">Notice</dt><dd class="error message"><ul><li>' + error + '</li></ul></dd></dl></div>';
- },
-
get_value: function (value) {
//if(typeof(jQuery(value).attr('value'))!="undefined"){
if (/<span value=['"].*['"]>.*<\/span>/i.test(value)) {
get_value: function (value) {
//if(typeof(jQuery(value).attr('value'))!="undefined"){
if (/<span value=['"].*['"]>.*<\/span>/i.test(value)) {
@@
-31,18
+27,7
@@
var unfold = {
} else {
return value;
}
} else {
return value;
}
- },
-
- escape_id: function(id) {
- if(typeof id != 'undefined'){
- return id.replace( /(:|\.|\[|\])/g, "\\$1" );
- }else{
- return "undefined-id";
- }
}
} // global unfold
}
} // global unfold
-// xxx tmp - until all plugins are ported
-errorDisplay = unfold.errorDisplay;
-get_value = unfold.get_value;