// Fix bugs on Admin Orders
This commit is contained in:
@@ -210,7 +210,11 @@
|
||||
|
||||
function resetBind()
|
||||
{
|
||||
$('.fancybox').fancybox();
|
||||
$('.fancybox').fancybox({
|
||||
'type': 'iframe',
|
||||
'width': '50%',
|
||||
'height': '100%'
|
||||
});
|
||||
/*$("#new_address").fancybox({
|
||||
onClosed: useCart(id_cart)
|
||||
});*/
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
form_datas[this.name] = this.value;
|
||||
});
|
||||
$.each(form_selects, function() {
|
||||
form_datas[this.name] = this.options.selectedIndex;
|
||||
form_datas[this.name] = this[this.options.selectedIndex].value;
|
||||
});
|
||||
$.ajax({
|
||||
type: this.method,
|
||||
@@ -49,7 +49,7 @@
|
||||
data : form_datas,
|
||||
success : function(res)
|
||||
{
|
||||
$('#fancybox-content').html(res);
|
||||
$('html').html(res);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -366,8 +366,13 @@ class ValidateCore
|
||||
*/
|
||||
public static function isCleanHtml($html)
|
||||
{
|
||||
$events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange';
|
||||
$events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror';
|
||||
$events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange
|
||||
|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend
|
||||
|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove
|
||||
|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel
|
||||
|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart
|
||||
|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange
|
||||
|onselectstart|onstart|onstop';
|
||||
return (!preg_match('/<[ \t\n]*script/i', $html) && !preg_match('/<?.*('.$events.')[ \t\n]*=/i', $html) && !preg_match('/.*script\:/i', $html));
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ class AdminTabsControllerCore extends AdminController
|
||||
'position' => array(
|
||||
'title' => $this->l('Position'),
|
||||
'width' => 40,
|
||||
'filter_key' => 'cp!position',
|
||||
'filter_key' => 'a!position',
|
||||
'position' => 'position'
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user