Skip to content

Commit

Permalink
Remove log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanbalci committed Sep 3, 2024
1 parent 416a916 commit e568157
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion app/js/app-cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ module.exports = function (chiseInstance) {
}); */
}
else{
console.log("source in newt", source)
chiseInstance.addEdge(source, target, edgeParams, promptInvalidEdge);
var addedEdge = cy.elements()[cy.elements().length - 1];
var currentArrowScale = Number($('#arrow-scale').val());
Expand Down
7 changes: 0 additions & 7 deletions app/js/app-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,10 @@ module.exports = function() {
var sbgnORsbml = appUtilities.filterMapTypeProperty(urlParams);
if(sbgnORsbml == "true")
{
console.log("sbml")
sbmlProperty.sbmlMap = true
}
else
{
console.log("sbgn")
sbmlProperty.sbmlMap = false
}

Expand Down Expand Up @@ -504,7 +502,6 @@ module.exports = function() {
});

$("#import-SBML-file").click(function () {
console.log("importing sbml file")
$("#sbml-file").trigger('click');
});

Expand Down Expand Up @@ -1206,7 +1203,6 @@ module.exports = function() {
success: function (data) {
// If response returns error display the message
if(data.name==='Error' || data.error || data.name==='error'){
console.log(data);
chiseSpinnerInstance.endSpinner("layout-spinner");
promtErrorPD2AF.render(data.message);
}else{
Expand Down Expand Up @@ -1250,7 +1246,6 @@ module.exports = function() {
}
},
error: function (data) {
console.log(data);
chiseSpinnerInstance.endSpinner("layout-spinner");
if(data.status == 0)
promtErrorPD2AF.render("Server might be offline!");
Expand Down Expand Up @@ -1512,7 +1507,6 @@ module.exports = function() {
if(cy.elements().length == 0) {
return;
}
console.log("layout-spinner")
chiseInstance.startSpinner("layout-spinner")

setTimeout(() => {
Expand Down Expand Up @@ -1963,7 +1957,6 @@ module.exports = function() {
// on active network tab change
$(document).on('shown.bs.tab', '#network-tabs-list a[data-toggle="tab"]', function (e) {
var target = $(e.target).attr("href"); // activated tab
console.log(target);
appUtilities.setActiveNetwork(target);
inspectorUtilities.handleSBGNInspector();
});
Expand Down
8 changes: 0 additions & 8 deletions app/js/app-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -3067,8 +3067,6 @@ appUtilities.launchWithModelFile = function() {
function loadFromURL(filepath, chiseInstance, promptInvalidURLWarning){

chiseInstance.startSpinner('paths-byURL-spinner');

console.log("loading form url")

var loadCallbackSBGNMLValidity = function (text) {
$.ajax({
Expand Down Expand Up @@ -3177,7 +3175,6 @@ appUtilities.launchWithModelFile = function() {
}; };
var layoutBy = function() {
appUtilities.triggerLayout(cyInstance, true);
console.log("in layoutBy")
};
if (xmlObject.children.item(0).getAttribute('xmlns:celldesigner')) {
await chiseInstance.loadCellDesigner(file, success = async function (data) {
Expand All @@ -3200,7 +3197,6 @@ appUtilities.launchWithModelFile = function() {
var sbgnOrSbml = sbmlProperty.sbmlMap; //True for sbml, false or undefined for sbgn

// sbml file
console.log("loding sbml", typeof(sbgnOrSbml), sbgnOrSbml)
if(sbgnOrSbml)
{
await chiseInstance.loadSbmlForSBML(file, success = async function (data){
Expand Down Expand Up @@ -3254,7 +3250,6 @@ appUtilities.launchWithModelFile = function() {
}

function loadFromURI(uri, chiseInstance, promptInvalidURIWarning){
console.log("loading form uri")

var queryURL = "http://www.pathwaycommons.org/pc2/get?uri="
+ uri + "&format=SBGN";
Expand All @@ -3277,18 +3272,15 @@ appUtilities.launchWithModelFile = function() {
$(document).trigger('sbgnvizLoadFile', [filename, cyInstance]);
$(document).trigger('sbgnvizLoadFromURI', [filename, cyInstance]);
chiseInstance.updateGraph(chiseInstance.convertSbgnmlToJson(xml, paramObj), undefined, currentLayoutProperties);
console.log("spinner ending")
chiseInstance.endSpinner('paths-byURI-spinner');
$(document).trigger('sbgnvizLoadFileEnd', [filename, cyInstance]);
}
else {
console.log("spinner ending else")
chiseInstance.endSpinner('paths-byURI-spinner');
promptInvalidURIWarning.render();
}
},
error: function(xhr, options, err){
console.log("spinner ending error")
chiseInstance.endSpinner('paths-byURI-spinner');
promptInvalidURIWarning.render(); }
});
Expand Down
2 changes: 0 additions & 2 deletions app/js/backbone-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -2947,7 +2947,6 @@ var CommonStreamQueryView = Backbone.View.extend({
url: "/utilities/testURL",
data: { url: queryURL },
success: function (data) {
console.log('recieved data:',data);
if (!data.error && data.response.statusCode == 200) {
if (data.response.body !== "") {
var xml = $.parseXML(data.response.body);
Expand Down Expand Up @@ -2994,7 +2993,6 @@ var CommonStreamQueryView = Backbone.View.extend({
chiseInstance.endSpinner("common-stream-spinner");
},
error: function (xhr, options, err) {
console.log(xhr,options,err);
new PromptInvalidQueryView({
el: "#prompt-invalidQuery-table",
}).render();
Expand Down
3 changes: 0 additions & 3 deletions app/js/inspector-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ inspectorUtilities.handleSBGNInspector = function () {
$("#sbgn-inspector-style-properties-panel").html(html);

colorPickerUtils.bindPicker2Input('#inspector-fill-color', function() {
console.log("channging background")
chiseInstance.changeData(selectedEles, 'background-color', $('#inspector-fill-color').val());
});
colorPickerUtils.bindPicker2Input('#inspector-border-color', function() {
Expand Down Expand Up @@ -873,7 +872,6 @@ inspectorUtilities.handleSBGNInspector = function () {
type: 'GET',
data: {url: url},
success: function(data){
console.log(data);
// here we can get 404 as well, for example, so there are still error cases to handle
if (!data.error && data.response.statusCode == 200 && typeof applyBackground === 'function')
applyBackground(node, bgObj);
Expand Down Expand Up @@ -1017,7 +1015,6 @@ inspectorUtilities.handleSBGNInspector = function () {
else {
hypothetical = false;
}
console.log("sbgnclass", sbgnclass)

var nameToVal = {
'width': selected.width(),
Expand Down

0 comments on commit e568157

Please sign in to comment.