]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/forum/privmsg.tt2
Use JQuery 1.3
[ndwebbie.git] / root / src / forum / privmsg.tt2
index 8870813568d833b37e6c8407fe447a7198df2ad8..73a6844f179bc9725becbd17255f94451cccfb40 100644 (file)
@@ -28,15 +28,15 @@ $(document).ready(function(){
        });
 
        $('#privmsg').submit(function(){
-               if(!$('#privmsg :checkbox[@name=uid][@checked]').val()){
+               if(!$('#privmsg :checkbox[name=uid][checked]').val()){
                        alert('You need to add a receiver.');
                        return false;
                }
-               if($('#privmsg :input[@name=subject]').val() == ''){
+               if($('#privmsg :input[name=subject]').val() == ''){
                        alert('You need to write a subject');
                        return false;
                }
-               if($('#privmsg :input[@name=message]').val() == ''){
+               if($('#privmsg :input[name=message]').val() == ''){
                        alert('You need to write a message');
                        return false;
                }