Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
demo(all): remove jQuery dependency
Browse files Browse the repository at this point in the history
 * Replace select2 in custom build with checkbox buttons.
  • Loading branch information
bekos authored and pkozlowski-opensource committed Aug 16, 2013
1 parent 8620aed commit ce226fa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3,063 deletions.
15 changes: 12 additions & 3 deletions misc/demo/assets/app.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

angular.module('bootstrapDemoApp', ['ui.directives', 'ui.bootstrap', 'plunker']);
angular.module('bootstrapDemoApp', ['ui.bootstrap', 'plunker']);

function MainCtrl($scope, $http, orderByFilter) {
function MainCtrl($scope, $http, $document, orderByFilter) {
var url = "http://50.116.42.77:3001";
$scope.selectedModules = [];
//iFrame for downloading
var $iframe = $("<iframe>").css('display','none').appendTo(document.body);
var $iframe = angular.element('<iframe>').css('display','none');
$document.find('body').append($iframe);

$scope.showBuildModal = function() {
$scope.buildModalShown = true;
Expand All @@ -28,4 +29,12 @@ function MainCtrl($scope, $http, orderByFilter) {
$iframe.attr('src', downloadUrl);
$scope.buildModalShown = false;
};

$scope.selectedChanged = function(module, selected) {
if (selected) {
$scope.selectedModules.push(module);
} else {
$scope.selectedModules.splice($scope.selectedModules.indexOf(module), 1);
}
};
}
Loading

0 comments on commit ce226fa

Please sign in to comment.