|
@@ -71,7 +71,6 @@
|
|
.on('submit', onSubmitLogForm)
|
|
.on('submit', onSubmitLogForm)
|
|
.addClass('ajax-enabled');
|
|
.addClass('ajax-enabled');
|
|
};
|
|
};
|
|
-
|
|
|
|
function onSubmitLogForm(e){
|
|
function onSubmitLogForm(e){
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
// console.log('onSubmitLogForm', e);
|
|
// console.log('onSubmitLogForm', e);
|
|
@@ -83,7 +82,6 @@
|
|
logIn(args).then(getStudioLinkBlock);
|
|
logIn(args).then(getStudioLinkBlock);
|
|
return false;
|
|
return false;
|
|
};
|
|
};
|
|
-
|
|
|
|
function logIn(args){
|
|
function logIn(args){
|
|
console.log('logIn', args);
|
|
console.log('logIn', args);
|
|
_$log_form.addClass('ajax-loading');
|
|
_$log_form.addClass('ajax-loading');
|
|
@@ -110,7 +108,6 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
-
|
|
|
|
function getStudioLinkBlock(){
|
|
function getStudioLinkBlock(){
|
|
var path = _origin+_base_url+'edlp/ajax/blocks/json/';
|
|
var path = _origin+_base_url+'edlp/ajax/blocks/json/';
|
|
$.getJSON(path+"studiolinkblock", {})
|
|
$.getJSON(path+"studiolinkblock", {})
|
|
@@ -119,7 +116,6 @@
|
|
console.warn('Studio ink block load failed', jqxhr.responseText);
|
|
console.warn('Studio ink block load failed', jqxhr.responseText);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
-
|
|
|
|
function onStudioLinkBlockLoaded(data){
|
|
function onStudioLinkBlockLoaded(data){
|
|
console.log('onStudioLinkBlockLoaded', data);
|
|
console.log('onStudioLinkBlockLoaded', data);
|
|
$('#block-studiouserlogin').replaceWith(data.blocks.studiolinkblock.rendered);
|
|
$('#block-studiouserlogin').replaceWith(data.blocks.studiolinkblock.rendered);
|
|
@@ -587,6 +583,7 @@
|
|
};
|
|
};
|
|
|
|
|
|
function onCloseModal(e){
|
|
function onCloseModal(e){
|
|
|
|
+ console.log("onCloseModal");
|
|
// check for theme attribute and emmit event
|
|
// check for theme attribute and emmit event
|
|
var $col = $(this).parents('.col');
|
|
var $col = $(this).parents('.col');
|
|
var theme = $col.attr('theme');
|
|
var theme = $col.attr('theme');
|
|
@@ -1824,7 +1821,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|
|
-
|
|
|
|
function checkGridBlockHeight(){
|
|
function checkGridBlockHeight(){
|
|
// console.log('checkGridBlockHeight');
|
|
// console.log('checkGridBlockHeight');
|
|
// if(_is_mobile) return;
|
|
// if(_is_mobile) return;
|
|
@@ -1846,7 +1842,6 @@
|
|
$this.height(Math.min($this.attr('init-height'), _$row.height()));
|
|
$this.height(Math.min($this.attr('init-height'), _$row.height()));
|
|
});
|
|
});
|
|
};
|
|
};
|
|
-
|
|
|
|
function checkGridBlockVisible(){
|
|
function checkGridBlockVisible(){
|
|
// console.log('checkGridBlockVisible');
|
|
// console.log('checkGridBlockVisible');
|
|
// if(_is_mobile) return;
|
|
// if(_is_mobile) return;
|
|
@@ -2049,6 +2044,8 @@
|
|
_$ajaxLinks.removeClass('is-active');
|
|
_$ajaxLinks.removeClass('is-active');
|
|
_$body.trigger({'type':'all-modal-closed'});
|
|
_$body.trigger({'type':'all-modal-closed'});
|
|
// checkRowEmpty();
|
|
// checkRowEmpty();
|
|
|
|
+
|
|
|
|
+ checkVisibleCorpusMapSpace();
|
|
};
|
|
};
|
|
|
|
|
|
function checkRowEmpty(){
|
|
function checkRowEmpty(){
|