projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MOD passage systèmatique par l'objet Communication
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
214c0f8
..
148f4cb
100755
(executable)
--- a/
js/euphorik.js
+++ b/
js/euphorik.js
@@
-27,9
+27,13
@@
$(document).ready(
var fragment = new Fragment();
var formateur = new euphorik.Formateur();
var util = new euphorik.Util(formateur);
var fragment = new Fragment();
var formateur = new euphorik.Formateur();
var util = new euphorik.Util(formateur);
- var communication = new euphorik.Communication(function(data) { util.messageDialogue(data.error_message); });
+ var communication = new euphorik.Communication(
+ function(data) { util.messageDialogue(data.error_message); },
+ function() { console.log("show"); $("#waitbar").show(); },
+ function() { console.log("hide"); $("#waitbar").hide(); }
+ );
var client = new euphorik.Client(util, communication);
var client = new euphorik.Client(util, communication);
- var pages = new euphorik.Pages(fragment);
+ var pages = new euphorik.Pages(fragment
, communication
);
// connexion vers le serveur (utilise un cookie qui traine)
client.connexionCookie();
// connexion vers le serveur (utilise un cookie qui traine)
client.connexionCookie();
@@
-61,10
+65,10
@@
$(document).ready(
$("#footer .conditions").click(function(){ pages.afficherPage("conditions_utilisation"); });
pages.ajouterPage(new euphorik.PageMinichat(client, formateur, util, communication), true);
$("#footer .conditions").click(function(){ pages.afficherPage("conditions_utilisation"); });
pages.ajouterPage(new euphorik.PageMinichat(client, formateur, util, communication), true);
- pages.ajouterPage(new euphorik.PageAdmin(client, formateur, util));
+ pages.ajouterPage(new euphorik.PageAdmin(client, formateur, util
, communication
));
pages.ajouterPage(new euphorik.PageProfile(client, formateur, util));
pages.ajouterPage(new euphorik.PageRegister(client, formateur, util));
pages.ajouterPage(new euphorik.PageProfile(client, formateur, util));
pages.ajouterPage(new euphorik.PageRegister(client, formateur, util));
- pages.ajouterPage(new euphorik.PageAbout(client, formateur, util));
+ pages.ajouterPage(new euphorik.PageAbout(client, formateur, util
, communication
));
pages.ajouterPage("conditions_utilisation");
pages.afficherPage();
pages.ajouterPage("conditions_utilisation");
pages.afficherPage();