add some trace to materio_user.js for debigging
This commit is contained in:
parent
90c6d5e6e9
commit
770e2155bb
@ -1,5 +1,5 @@
|
|||||||
// @codekit-prepend "gui.js"
|
// @codekit-prepend "gui.js"
|
||||||
// @koala-prepend "gui.js"
|
// @koala-prepend "gui_ck_fw/gui.js"
|
||||||
|
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
@ -14,9 +14,10 @@ MaterioUser = function(){
|
|||||||
};
|
};
|
||||||
|
|
||||||
function initAdhesion(){
|
function initAdhesion(){
|
||||||
//trace('initAdhesion');
|
trace('initAdhesion');
|
||||||
$('.get-link a').bind('click', function(event) {
|
$('.get-link a').bind('click', function(event) {
|
||||||
|
trace('get-link click');
|
||||||
|
|
||||||
// do not show the registration form if already logged-in
|
// do not show the registration form if already logged-in
|
||||||
if($('body').is('.logged-in'))
|
if($('body').is('.logged-in'))
|
||||||
return true;
|
return true;
|
||||||
@ -30,7 +31,7 @@ MaterioUser = function(){
|
|||||||
|
|
||||||
destination = "/" + destination[1].replace('%23', '#');
|
destination = "/" + destination[1].replace('%23', '#');
|
||||||
destination = destination.replace('//', '/');
|
destination = destination.replace('//', '/');
|
||||||
// trace('destination', destination);
|
trace('destination', destination);
|
||||||
|
|
||||||
if($this.parents('.gratos').size()){
|
if($this.parents('.gratos').size()){
|
||||||
loadRegisterBlock(destination);
|
loadRegisterBlock(destination);
|
||||||
@ -47,7 +48,7 @@ MaterioUser = function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadLoginAndRegisterBlock(destination){
|
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);});
|
$.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/loginandregisterblock', function(json){formLoaded(json, destination);});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
517
js/materio_user.min.js
vendored
517
js/materio_user.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user