mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Add formulas for readonly results tables
This commit is contained in:
parent
e096f936f9
commit
5c88bdeeae
1 changed files with 22 additions and 23 deletions
|
@ -187,29 +187,6 @@ function expandResult(result) {
|
||||||
renderTable($(result).find("div.step-result-hot-table"));
|
renderTable($(result).find("div.step-result-hot-table"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
initHandsOnTables($(document));
|
|
||||||
initResultCommentTabAjax();
|
|
||||||
expandAllResults();
|
|
||||||
initTutorial();
|
|
||||||
applyCollapseLinkCallBack();
|
|
||||||
|
|
||||||
initCommentOptions("ul.content-comments");
|
|
||||||
initEditComments("#results");
|
|
||||||
initDeleteComments("#results");
|
|
||||||
|
|
||||||
$(function () {
|
|
||||||
$("#results-collapse-btn").click(function () {
|
|
||||||
$('.result .panel-collapse').collapse('hide');
|
|
||||||
$(document).find("span.collapse-result-icon").each(function() {
|
|
||||||
$(this).addClass("glyphicon-collapse-down");
|
|
||||||
$(this).removeClass("glyphicon-collapse-up");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#results-expand-btn").click(expandAllResults);
|
|
||||||
});
|
|
||||||
|
|
||||||
function renderTable(table) {
|
function renderTable(table) {
|
||||||
$(table).handsontable("render");
|
$(table).handsontable("render");
|
||||||
// Yet another dirty hack to solve HandsOnTable problems
|
// Yet another dirty hack to solve HandsOnTable problems
|
||||||
|
@ -364,6 +341,28 @@ function processResult(ev, resultTypeEnum, editMode, forS3) {
|
||||||
// This checks if the ctarget param exist in the
|
// This checks if the ctarget param exist in the
|
||||||
// rendered url and opens the comment tab
|
// rendered url and opens the comment tab
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
initHandsOnTables($(document));
|
||||||
|
initResultCommentTabAjax();
|
||||||
|
expandAllResults();
|
||||||
|
initTutorial();
|
||||||
|
applyCollapseLinkCallBack();
|
||||||
|
|
||||||
|
initCommentOptions("ul.content-comments");
|
||||||
|
initEditComments("#results");
|
||||||
|
initDeleteComments("#results");
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$("#results-collapse-btn").click(function () {
|
||||||
|
$('.result .panel-collapse').collapse('hide');
|
||||||
|
$(document).find("span.collapse-result-icon").each(function() {
|
||||||
|
$(this).addClass("glyphicon-collapse-down");
|
||||||
|
$(this).removeClass("glyphicon-collapse-up");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#results-expand-btn").click(expandAllResults);
|
||||||
|
});
|
||||||
|
|
||||||
if( getParam('ctarget') ){
|
if( getParam('ctarget') ){
|
||||||
var target = "#"+ getParam('ctarget');
|
var target = "#"+ getParam('ctarget');
|
||||||
$(target).find('a.comment-tab-link').click();
|
$(target).find('a.comment-tab-link').click();
|
||||||
|
|
Loading…
Reference in a new issue