Created
August 9, 2013 21:26
-
-
Save carlcrott/6197371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function instantiateExperimentDataTableBindings() { | |
experimentTable = $("#experimentsListDiv").experimentList({ | |
url : 'experiment_list.py', | |
onbeforepost : function () { | |
$('#spinnercont').show(); | |
}, | |
onreload : function () {}, | |
onpostdone : function () { | |
$('#spinnercont').hide(); | |
}, | |
ondraw : function () { | |
$(".deleteIcon").tooltip({ | |
show : false, | |
hide : false, | |
content : function () { | |
return "<div class='tooltipdata'>Delete</div>"; | |
} | |
}).unbind("click").click(function () { | |
Delete(this); | |
}); | |
$(".resumeIcon").tooltip({ | |
show : false, | |
hide : false, | |
content : function () { | |
return "<div class='tooltipdata'>Resume</div>"; | |
} | |
}).unbind("click").click(function () { | |
$('#spinnercont').show(); | |
experimentResume(this); | |
}); | |
$(".tagIcon").tooltip({ | |
show : false, | |
hide : false, | |
content : function () { | |
return "<div class='tooltipdata'>Tags</div>"; | |
} | |
}).unbind("click").click(function () { | |
editSingleIdMetadataTags( $(this) ); | |
}); | |
$(".experimentIcon").tooltip({ | |
show : false, | |
hide : false, | |
content : function () { | |
return "<div class='tooltipdata'>Load Measurements</div>"; | |
} | |
}).unbind("click").click(function () { | |
loadMeasurements(this); | |
}); | |
$(".measurementRefreshIcon").tooltip({ | |
show : false, | |
hide : false, | |
content : function () { | |
return "<div class='tooltipdata'>Refresh Measurement Count</div>"; | |
} | |
}).unbind("click").click(function () { | |
measurementRefresh(this); | |
}); | |
$(".editIcon").unbind("click").click(function () { | |
editEntry(this); | |
}); | |
$('#multiExperimentTabTags').on('click',function(){ | |
if( $(this).hasClass("inactiveButton") == false ){ | |
// find first column and get measurement ID from it | |
var multiedit_input_ids = []; | |
$.each( $(".row_selected").filter(':visible'), function (){ | |
var single_id = $(this).find('td').eq(0).text().split(" ")[2]; | |
multiedit_input_ids.push( single_id ); | |
}); | |
console.log("MULTI EDIT experiment:"); | |
console.log(multiedit_input_ids); | |
editMultipleIdMetadataTags( "experiment", multiedit_input_ids ); | |
}; | |
}); | |
} // ondraw : function () { | |
}); //experimentList | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment