js helper function 'get_value' not defined globally anymore, use unfold.get_velue...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:36:47 +0000 (06:36 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:36:47 +0000 (06:36 +0200)
plugins/googlemap/static/js/googlemap.js
plugins/lists/static/js/simplelist.js
plugins/query_editor/static/js/query_editor.js
plugins/resources_selected/static/js/resources_selected.js
unfold/static/js/unfold-helper.js

index 3876e9f..8cb652f 100644 (file)
@@ -158,8 +158,8 @@ googlemap_debug_detailed=false;
             if (!(record['latitude'])) return false;
            
             // get the coordinates
-            var latitude=get_value(record['latitude']);
-            var longitude=get_value(record['longitude']);
+            var latitude=unfold.get_value(record['latitude']);
+            var longitude=unfold.get_value(record['longitude']);
             var lat_lon = latitude + longitude;
 
            // check if we've seen anything at that place already
index 545c04c..6a65673 100644 (file)
            $plugindiv.closest('.need-spin').spin(false);
 
         if (rows.length == 0) {
-               if (use_datatables)
-                 datatables_set_message ($table, $tbody, unfold.warning("No result"));
-               else
-                       regular_set_message ($table, $tbody, unfold.warning("No result"));
+           if (use_datatables)
+                datatables_set_message ($table, $tbody, unfold.warning("No result"));
+           else
+               regular_set_message ($table, $tbody, unfold.warning("No result"));
             return;
         }
 
index 8b739f0..51a9c0e 100644 (file)
             //console.log(record);
             availableTags = this.availableTags;           
             jQuery.each(record,function(key,value){
-                value = get_value(value);
+                value = unfold.get_value(value);
                 if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();}
                 //availableTags[key].push(value);
                 var currentArray = availableTags[key];
             var availableTags={};
             jQuery.each (rows, function(index, obj) {                    
                 jQuery.each(obj,function(key,value){                       
-                    value = get_value(value); 
+                    value = unfold.get_value(value); 
                     if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();}
                     //availableTags[key].push(value);
                     var currentArray=availableTags[key];
index 30ffbc5..a16d4d5 100644 (file)
             var remove_urn = this.id; 
             var current_resources = event.data.instance.current_resources;
             var list_resources = $.grep(current_resources, function(x) {return x.urn != remove_urn});
-            //jQuery.publish('selected', 'cancel/'+this.id+'/'+get_value(firstCellVal));
+            //jQuery.publish('selected', 'cancel/'+this.id+'/'+unfold.get_value(firstCellVal));
             $.publish('/update-set/' + event.data.instance.options.resource_query_uuid, [list_resources, true]);
         },
 
index 27f54fc..1564e6f 100644 (file)
@@ -31,5 +31,3 @@ var unfold = {
 
 } // global unfold
 
-// xxx tmp - until all plugins are ported
-get_value      = unfold.get_value;