From 669508d7ec830633385180eb7c317084069a8d5a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 19 Feb 2013 12:41:21 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.url.php | 1 - js/ws.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 78c057d24..59352ac75 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -1886,7 +1886,6 @@ html{height:100%}' . "\n"; $dao = new wsDAODemande($core->con); $demande = $dao->selectById($demande_id); - $res = commonPage::barre(); $res .= commonPage::tMain(); $res .= commonPage::bh(); diff --git a/js/ws.js b/js/ws.js index 006164ea5..d5b869c1f 100644 --- a/js/ws.js +++ b/js/ws.js @@ -3,7 +3,7 @@ TO_LOAD_ONCE[TO_LOAD_ONCE.length] = 'load_ws_once();'; FIRST_LOAD = true; function load_ws_once() { - $('form[action="exportbook"] select, form[action="exportbookExe"] select').on('change', function() { + $(document).on('change', 'form[action="exportbook"] select, form[action="exportbookExe"] select', function() { var form = $(this).parents('form'); $(form).find('#changed').val($(this).attr('name')); $(form).attr('action', 'exportbook').submit().attr('action', 'exportbookExe'); @@ -159,7 +159,7 @@ function findProprietaire(li) { $("#proprietaire").val(user_id); } -function findBook(li) { +function findBook(li, input) { var book = li.selectValue.split(' - '); if (book.length <= 1) { @@ -167,7 +167,7 @@ function findBook(li) { } var book_id = parseInt(book[0]); - var next = $(this.input).next('input[type="hidden"]:first'); - fb(this.input); + var next = $(input).next('input[type="hidden"]:first'); + fb(input); $(next).val(book_id); } \ No newline at end of file -- 2.39.5