clean up multiply-defined although unused js function errorDisplay
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:29:52 +0000 (06:29 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:29:52 +0000 (06:29 +0200)
portal/static/js/common.functions.js
unfold/static/js/unfold-helper.js

index 3fe31c4..2414216 100644 (file)
@@ -14,11 +14,6 @@ function getKeySplitId(id,separator){
     return key;
 }
 
-function errorDisplay(error){
-    var out = '<div class="error"><dl id="system-message"><dt class="error">Notice</dt><dd class="error message"><ul><li>' + error + '</li></ul></dd></dl></div>';
-    return out;
-}
-
 function arrays_equal(a,b) { return !(a<b || b<a); }
 
 function arrayInArray(elt,tab){
index 0595dde..27f54fc 100644 (file)
@@ -20,10 +20,6 @@ var unfold = {
        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)) {
@@ -36,5 +32,4 @@ var unfold = {
 } // global unfold
 
 // xxx tmp - until all plugins are ported
-errorDisplay   = unfold.errorDisplay;
 get_value      = unfold.get_value;