/[openfoncier]/trunk/app/js/script.js
ViewVC logotype

Diff of /trunk/app/js/script.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 849 by nhaye, Wed Nov 28 11:22:37 2012 UTC revision 881 by vpihour, Thu Nov 29 09:40:07 2012 UTC
# Line 1047  function om_initialize_content() { Line 1047  function om_initialize_content() {
1047      changeDemandeurType('qualite');      changeDemandeurType('qualite');
1048      addSearchIcon();      addSearchIcon();
1049      addDivDialog('.bloc_demandeur');      addDivDialog('.bloc_demandeur');
 }  
1050    }
1051    
1052    /*
1053     * Marque comme lu une consultation
1054     */
1055    function markedAsRead(idConsultation){
1056        
1057        /*Vérifie que l'identifiant passé en paramètre est bien un chiffre*/
1058        if ( $.isNumeric(idConsultation) ){
1059            
1060            donnees = "?idc=" + idConsultation;
1061            $.ajax({
1062                type: "GET",
1063                url: "../app/marquer_comme_lu.php" + donnees ,
1064                cache: false,
1065                success: function(html){
1066                    
1067                    /*Change la valeur affiché*/
1068                    if ( $.parseJSON(html) == "Mise a jour effectue avec succes"){
1069                        
1070                        $('#lu').html('Oui');
1071                    }
1072                    
1073                    /*Affichage du message de retour*/
1074                    alert($.parseJSON(html));
1075                }
1076            });
1077        }
1078    }

Legend:
Removed from v.849  
changed lines
  Added in v.881

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26