Sha256: 7232e0d1ede5fd5665f1926768ebdac5a90a8cfd4503fb0bde2a830cf04fe974

Contents?: true

Size: 663 Bytes

Versions: 6

Compression:

Stored size: 663 Bytes

Contents

'use strict';

angular.module('apiDocoApp')
.controller('DocumentationController', ['$scope', '$window', function ($scope, $window) {
  $scope.navigateToCurrentVersion = function (versionName) {
    var version = $scope.documentationVersions.filter(function(v) {
      return v.name === versionName;
    })[0];
    $window.location.href = version.path;
  };

  $scope.initMenuToggle = function() {
    $(document).ready(function () {
      $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled");
      });
    });
  };

  $scope.init = function () {
    $scope.initMenuToggle();
  };

  $scope.init();
}]);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
apidoco-1.3.0 app/assets/javascripts/apidoco/controllers/documentations_controller.js
apidoco-1.2.0 app/assets/javascripts/apidoco/controllers/documentations_controller.js
apidoco-1.1.0 app/assets/javascripts/apidoco/controllers/documentations_controller.js
apidoco-1.0.2 app/assets/javascripts/apidoco/controllers/documentations_controller.js
apidoco-1.0.1 app/assets/javascripts/apidoco/controllers/documentations_controller.js
apidoco-0.1.0 app/assets/javascripts/apidoco/controllers/documentations_controller.js