02-11-2010, 12:01 PM
|
PM User |
#1
|
|
New to the CF scene
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
Prototype To JQuery
Hello,
I started my project I used in the prototype. But then the was problem.
I can not do have a (Prototype)function. How do I turn the JQuery code
below ?
Code:
function deleteBatch(_21){
var ids=[];
var _23=[];
$(".questionCheckbox").each(function(_24){
if(_24.checked){
ids.push(_24.value);
_23.push($("#question"+_24.value).find("h4"));
}
});
if(!ids.length){
alert("Lütfen soru seçiniz");
return;
}
_23.each(function(_25){
_25.removeClass("highlightYellow");
_25.addClass("highlightRed");
});
if(!confirm("Bu içeriği silmek istediğinizden emin misiniz ? Zira bu işlem geri alınamaz.")){
_23.each(function(_26){
_26.removeClass("highlightRed");
_26.addClass("highlightYellow");
});
return;
}
$("#deleteBatchButton").disabled=true;
$("#batchIndicator").show();
deleteQuestions(ids.join(","),_21);
};
Sincerely,
Samet ARAS.
|
|
|
|