我想在cboxOverlay点击时阻止colorbox关闭
我正在使用此代码:
$.fn.colorbox({ overlayClose: false });
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
我也禁用Esc关闭
$(document).bind("keydown.cbox_close", function (e) {
if (e.keyCode === 27) {
e.preventDefault();
cboxPublic.close();
}});
Run Code Online (Sandbox Code Playgroud)
Esc代码正常工作.
但如何防止彩盒关闭覆盖?
谢谢
我在CakePHP中遇到了问题
我有一个数组($ A)及其值
Array // in $A
(
[0] => 3
[1] => 4
...
}
Run Code Online (Sandbox Code Playgroud)
在控制器内:
$conditions[]=array('Room.place_id' =>$A,'Room.status'=>'1');
$this->paginate= array(
'limit' =>50,
'recursive' => 2,
'conditions' => $conditions,
);
Run Code Online (Sandbox Code Playgroud)
现在的结果是:
Array
(
[0] => Array
(
[Room] => Array
(
[id] => 1
[place_id] => 1
[type] => place
)
)
[1] => Array
(
[Room] => Array
(
[id] => 2
[place_id] => 3
)
).
...
Run Code Online (Sandbox Code Playgroud)
现在我想使用$ A值来订购(在地方ID)...
我希望第一条记录是[place_id] => 3的房间(因为$ a [0] = 3)
第二条记录应该是[place_id] => …