value2str
This commit is contained in:
parent
f79e92c14a
commit
5907a46665
@ -61,11 +61,17 @@ $(function(){
|
|||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
method for converting data before sent on server.
|
converts value to string.
|
||||||
As jQuery correctly sends objects via ajax, you can just return value
|
It is used in internal comparing (not for sending to server).
|
||||||
*/
|
*/
|
||||||
value2str: function(value) {
|
value2str: function(value) {
|
||||||
return value;
|
var str = '';
|
||||||
|
if(value) {
|
||||||
|
for(var k in value) {
|
||||||
|
str = str + k + ':' + value[k] + ';';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user