$dao = new wsDAODemande($core->con);\r
$demande = $dao->selectById($demande_id);\r
\r
-\r
$res = commonPage::barre();\r
$res .= commonPage::tMain();\r
$res .= commonPage::bh();\r
FIRST_LOAD = true;\r
\r
function load_ws_once() {\r
- $('form[action="exportbook"] select, form[action="exportbookExe"] select').on('change', function() {\r
+ $(document).on('change', 'form[action="exportbook"] select, form[action="exportbookExe"] select', function() {\r
var form = $(this).parents('form');\r
$(form).find('#changed').val($(this).attr('name'));\r
$(form).attr('action', 'exportbook').submit().attr('action', 'exportbookExe');\r
$("#proprietaire").val(user_id);\r
}\r
\r
-function findBook(li) {\r
+function findBook(li, input) {\r
\r
var book = li.selectValue.split(' - ');\r
if (book.length <= 1) {\r
}\r
\r
var book_id = parseInt(book[0]);\r
- var next = $(this.input).next('input[type="hidden"]:first');\r
- fb(this.input);\r
+ var next = $(input).next('input[type="hidden"]:first');\r
+ fb(input);\r
$(next).val(book_id);\r
}
\ No newline at end of file