Commit 499961aa authored by Marc Duez's avatar Marc Duez
Browse files

database.js : add a tool function for building request

parent 2d41b316
...@@ -372,6 +372,18 @@ Database.prototype = { ...@@ -372,6 +372,18 @@ Database.prototype = {
}); });
}, },
//check every input field in the page with the given input_name
//return the list of values selected
getListInput : function (input_name) {
var list=[]
$("input[name='"+input_name+"']").each(
function () {
if (this.checked) list.push(this.value)
}
)
return list
},
load_custom_data: function(args) { load_custom_data: function(args) {
var self=this; var self=this;
myConsole.closePopupMsg() myConsole.closePopupMsg()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment