PDA

View Full Version : multi orders update



michael_s
02-21-2008, 01:23 PM
here the code to hide the box aka 'fermer'. appli this
open admin/multiorders.php
look for this

function infoMailing(act, id, evt) {

var obj = 'infoMailing';

formCmd = document.forms['updateStatus'];

formBox = document.forms['infoMail'];

switch (act) {

just after add this just before: case 'supprimer' :

case 'fermer' :

var id = formBox.elements['key'].value;

setVisibilityObj(obj, 'cacher');

formCmd.elements['update_oID[' + id + ']'].checked = false;

if (theObj2 = getObjectClasse('tr_' + id)) {

if (theObj2.className !== 'dataTableRow') theObj2.className = 'dataTableRow';

}
break

the result look like this for this part

function infoMailing(act, id, evt) {

var obj = 'infoMailing';

formCmd = document.forms['updateStatus'];

formBox = document.forms['infoMail'];

switch (act) {
case 'fermer' :

var id = formBox.elements['key'].value;

setVisibilityObj(obj, 'cacher');

formCmd.elements['update_oID[' + id + ']'].checked = false;

if (theObj2 = getObjectClasse('tr_' + id)) {

if (theObj2.className !== 'dataTableRow') theObj2.className = 'dataTableRow';

}
break

case 'supprimer' :

var id = formBox.elements['key'].value;

setVisibilityObj(obj, 'cacher');

formCmd.elements['update_oID[' + id + ']'].checked = false;

if (theObj2 = getObjectClasse('tr_' + id)) {

if (theObj2.className !== 'dataTableRow2') theObj2.className = 'dataTableRow2';

}

break


look for this



remplace with this




now when you clic on 'fermer' the box is hidden.

thepackage contain the multioders fixed.

More... (http://addons.oscommerce.com/info/5557)