fix for angular apps, when you dont have proper route and clicking on header leads to 'othewise' branch of router

This commit is contained in:
safin
2015-09-16 18:48:53 +03:00
parent 736e7cd90e
commit 16cfce4c20

View File

@@ -674,6 +674,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$.bbq.pushState('#/', 2);
Docs.collapseOperation(elem);
} else {
event.preventDefault();
Docs.expandOperation(elem);
}
},