3781: Add browser->api/keepproxy angular app as Upload tab on collections#show
[arvados.git] / apps / workbench / app / assets / javascripts / application.js
index a23a6d488045be7bc297aa217626e9d60cf23c02..6b98fd93cc44cfd67023e12800294c501f74d5c0 100644 (file)
 //= require bootstrap3-editable/bootstrap-editable
 //= require bootstrap-tab-history
 //= require wiselinks
+//= require angular
 //= require_tree .
 
 jQuery(function($){
-    $.ajaxSetup({
-        headers: {
-            'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
-        }
-    });
-
     $(document).ajaxStart(function(){
       $('.modal-with-loading-spinner .spinner').show();
     }).ajaxStop(function(){
@@ -236,3 +231,7 @@ function showLoadingModal() {
 function hideLoadingModal() {
     $('#loading-modal').modal('hide');
 }
+
+function hasHTML5History() {
+    return !!(window.history && window.history.pushState);
+}