221 |
* |
* |
222 |
* @param objsf string : objet de sousformulaire |
* @param objsf string : objet de sousformulaire |
223 |
* @param link string : lien vers un sousformulaire (../scr/sousform.php...) |
* @param link string : lien vers un sousformulaire (../scr/sousform.php...) |
224 |
|
* @param width integer: width en px |
225 |
|
* @param height integer: height en px |
226 |
* @param callback function (optionel) : nom de la méthode à appeler |
* @param callback function (optionel) : nom de la méthode à appeler |
227 |
* à la fermeture du dialog |
* à la fermeture du dialog |
228 |
* @param callbackParams mixed (optionel) : paramètre à traiter dans la function |
* @param callbackParams mixed (optionel) : paramètre à traiter dans la function |
229 |
* callback |
* callback |
230 |
* |
* |
231 |
**/ |
**/ |
232 |
function popupIt(objsf, link, callback, callbackParams) { |
function popupIt(objsf, link, width, height, callback, callbackParams) { |
233 |
// Insertion du conteneur du dialog |
// Insertion du conteneur du dialog |
234 |
var dialog = $('<div id=\"sousform-'+objsf+'\"></div>').insertAfter('.formControls'); |
var dialog = $('<div id=\"sousform-'+objsf+'\"></div>').insertAfter('.formControls'); |
235 |
$('<input type=\"text\" name=\"recherchedyn\" id=\"recherchedyn\" value=\"\" class=\"champFormulaire\" style=\"display:none\" />').insertAfter('#sousform-'+objsf); |
$('<input type=\"text\" name=\"recherchedyn\" id=\"recherchedyn\" value=\"\" class=\"champFormulaire\" style=\"display:none\" />').insertAfter('#sousform-'+objsf); |
260 |
}, |
}, |
261 |
resizable: false, |
resizable: false, |
262 |
modal: true, |
modal: true, |
263 |
width: 700, |
width: width, |
264 |
height: 520, |
height: height, |
265 |
}); |
}); |
266 |
}, |
}, |
267 |
async : false |
async : false |