git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7095343
)
js helper function 'get_value' not defined globally anymore, use unfold.get_velue...
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:36:47 +0000
(06:36 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sat, 5 Oct 2013 04:36:47 +0000
(06:36 +0200)
plugins/googlemap/static/js/googlemap.js
patch
|
blob
|
history
plugins/lists/static/js/simplelist.js
patch
|
blob
|
history
plugins/query_editor/static/js/query_editor.js
patch
|
blob
|
history
plugins/resources_selected/static/js/resources_selected.js
patch
|
blob
|
history
unfold/static/js/unfold-helper.js
patch
|
blob
|
history
diff --git
a/plugins/googlemap/static/js/googlemap.js
b/plugins/googlemap/static/js/googlemap.js
index
3876e9f
..
8cb652f
100644
(file)
--- a/
plugins/googlemap/static/js/googlemap.js
+++ b/
plugins/googlemap/static/js/googlemap.js
@@
-158,8
+158,8
@@
googlemap_debug_detailed=false;
if (!(record['latitude'])) return false;
// get the coordinates
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
var lat_lon = latitude + longitude;
// check if we've seen anything at that place already
diff --git
a/plugins/lists/static/js/simplelist.js
b/plugins/lists/static/js/simplelist.js
index
545c04c
..
6a65673
100644
(file)
--- a/
plugins/lists/static/js/simplelist.js
+++ b/
plugins/lists/static/js/simplelist.js
@@
-67,10
+67,10
@@
$plugindiv.closest('.need-spin').spin(false);
if (rows.length == 0) {
$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;
}
return;
}
diff --git
a/plugins/query_editor/static/js/query_editor.js
b/plugins/query_editor/static/js/query_editor.js
index
8b739f0
..
51a9c0e
100644
(file)
--- a/
plugins/query_editor/static/js/query_editor.js
+++ b/
plugins/query_editor/static/js/query_editor.js
@@
-190,7
+190,7
@@
//console.log(record);
availableTags = this.availableTags;
jQuery.each(record,function(key,value){
//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];
if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();}
//availableTags[key].push(value);
var currentArray = availableTags[key];
@@
-292,7
+292,7
@@
var availableTags={};
jQuery.each (rows, function(index, obj) {
jQuery.each(obj,function(key,value){
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];
if(!availableTags.hasOwnProperty(key)){availableTags[key]=new Array();}
//availableTags[key].push(value);
var currentArray=availableTags[key];
diff --git
a/plugins/resources_selected/static/js/resources_selected.js
b/plugins/resources_selected/static/js/resources_selected.js
index
30ffbc5
..
a16d4d5
100644
(file)
--- a/
plugins/resources_selected/static/js/resources_selected.js
+++ b/
plugins/resources_selected/static/js/resources_selected.js
@@
-340,7
+340,7
@@
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});
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]);
},
$.publish('/update-set/' + event.data.instance.options.resource_query_uuid, [list_resources, true]);
},
diff --git
a/unfold/static/js/unfold-helper.js
b/unfold/static/js/unfold-helper.js
index
27f54fc
..
1564e6f
100644
(file)
--- a/
unfold/static/js/unfold-helper.js
+++ b/
unfold/static/js/unfold-helper.js
@@
-31,5
+31,3
@@
var unfold = {
} // global unfold
} // global unfold
-// xxx tmp - until all plugins are ported
-get_value = unfold.get_value;