2
0
forked from Wavyzz/dolibarr

Fix: strict mode way

This commit is contained in:
Regis Houssin
2012-07-10 22:10:12 +02:00
parent 28ccc43125
commit ff0668e908
13 changed files with 113 additions and 86 deletions

View File

@@ -207,19 +207,19 @@ function ajax_dialog($title,$message,$w=350,$h=150)
*/
function ajax_combobox($htmlname, $event=array())
{
$msg.= '<script type="text/javascript">
$msg = '<script type="text/javascript">
$(function() {
$("#'.$htmlname.'").combobox({
selected : function(event,ui) {
var obj = '.json_encode($event).';
$.each(obj, function(key,values) {
$.each(obj, function(key,values) {
if (values.method.length) {
getMethod(values);
}
});
}
});
function getMethod(obj) {
var id = $("#'.$htmlname.'").val();
var method = obj.method;