|
@@ -1,5 +1,5 @@
|
|
|
// @codekit-prepend "gui.js"
|
|
|
-// @koala-prepend "gui.js"
|
|
|
+// @koala-prepend "gui_ck_fw/gui.js"
|
|
|
|
|
|
(function($) {
|
|
|
|
|
@@ -14,9 +14,10 @@ MaterioUser = function(){
|
|
|
};
|
|
|
|
|
|
function initAdhesion(){
|
|
|
- //trace('initAdhesion');
|
|
|
+ trace('initAdhesion');
|
|
|
$('.get-link a').bind('click', function(event) {
|
|
|
-
|
|
|
+ trace('get-link click');
|
|
|
+
|
|
|
// do not show the registration form if already logged-in
|
|
|
if($('body').is('.logged-in'))
|
|
|
return true;
|
|
@@ -30,7 +31,7 @@ MaterioUser = function(){
|
|
|
|
|
|
destination = "/" + destination[1].replace('%23', '#');
|
|
|
destination = destination.replace('//', '/');
|
|
|
- // trace('destination', destination);
|
|
|
+ trace('destination', destination);
|
|
|
|
|
|
if($this.parents('.gratos').size()){
|
|
|
loadRegisterBlock(destination);
|
|
@@ -47,7 +48,7 @@ MaterioUser = function(){
|
|
|
}
|
|
|
|
|
|
function loadLoginAndRegisterBlock(destination){
|
|
|
- //trace('loadRegistrationBlock :: dest = '+destination);
|
|
|
+ trace('loadRegistrationBlock :: dest = '+destination);
|
|
|
$.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/loginandregisterblock', function(json){formLoaded(json, destination);});
|
|
|
};
|
|
|
|