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

Commit 694a011

Browse files
committed
chore(demo): use prefixed directives
1 parent 44354f6 commit 694a011

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎misc/demo/assets/app.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch', 'ngAn
2020
get: function () {
2121
return $q.all({
2222
moduleMap: getModuleMap(),
23-
rawFiles: getRawFiles(),
23+
rawFiles: getRawFiles()
2424
});
2525
}
2626
};
@@ -46,9 +46,9 @@ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch', 'ngAn
4646
.controller('SelectModulesCtrl', SelectModulesCtrl)
4747
.controller('DownloadCtrl', DownloadCtrl);
4848

49-
function MainCtrl($scope, $http, $document, $modal, orderByFilter) {
49+
function MainCtrl($scope, $http, $document, $uibModal, orderByFilter) {
5050
$scope.showBuildModal = function() {
51-
var modalInstance = $modal.open({
51+
var modalInstance = $uibModal.open({
5252
templateUrl: 'buildModal.html',
5353
controller: 'SelectModulesCtrl',
5454
resolve: {
@@ -63,7 +63,7 @@ function MainCtrl($scope, $http, $document, $modal, orderByFilter) {
6363
};
6464

6565
$scope.showDownloadModal = function() {
66-
var modalInstance = $modal.open({
66+
var modalInstance = $uibModal.open({
6767
templateUrl: 'downloadModal.html',
6868
controller: 'DownloadCtrl'
6969
});
@@ -306,4 +306,4 @@ var isOldBrowser;
306306
.attr('src', objectUrl);
307307
}
308308

309-
})();
309+
})();

‎misc/demo/index.html‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
<a href="#top" role="button" class="navbar-brand">
4242
UI Bootstrap
4343
</a>
44-
<li class="dropdown" dropdown>
45-
<a role="button" class="dropdown-toggle" dropdown-toggle>
44+
<li class="dropdown" uib-dropdown>
45+
<a role="button" class="dropdown-toggle" uib-dropdown-toggle>
4646
Directives <b class="caret"></b>
4747
</a>
4848
<ul class="dropdown-menu">
@@ -242,8 +242,8 @@ <h1><%= module.displayName %><small>
242242
<label class="col-sm-3 control-label"><strong>Build</strong></label>
243243
<div class="col-sm-9">
244244
<span class="btn-group">
245-
<button type="button" class="btn btn-default" ng-model="options.minified" btn-radio="true">Minified</button>
246-
<button type="button" class="btn btn-default" ng-model="options.minified" btn-radio="false">Uncompressed</button>
245+
<button type="button" class="btn btn-default" ng-model="options.minified" uib-btn-radio="true">Minified</button>
246+
<button type="button" class="btn btn-default" ng-model="options.minified" uib-btn-radio="false">Uncompressed</button>
247247
</span>
248248
<small class="help-block">Use <b>Minified</b> version in your deployed application. <b>Uncompressed</b> source code is useful only for debugging and development purpose.</small>
249249
</div>
@@ -252,8 +252,8 @@ <h1><%= module.displayName %><small>
252252
<label class="col-sm-3 control-label"><strong>Include Templates</strong></label>
253253
<div class="col-sm-9">
254254
<span class="btn-group">
255-
<button type="button" class="btn btn-default" ng-model="options.tpls" btn-radio="true">Yes</button>
256-
<button type="button" class="btn btn-default" ng-model="options.tpls" btn-radio="false">No</button>
255+
<button type="button" class="btn btn-default" ng-model="options.tpls" uib-btn-radio="true">Yes</button>
256+
<button type="button" class="btn btn-default" ng-model="options.tpls" uib-btn-radio="false">No</button>
257257
</span>
258258
<small class="help-block">Whether you want to include the <i>default templates</i>, bundled with most of the directives. These templates are based on Bootstrap's markup and CSS.</small>
259259
</div>
@@ -299,7 +299,7 @@ <h4 style="text-align: center;">{{buildErrorText}}</h4>
299299
style="width: 33%; border-radius: 0;"
300300
ng-class="{'btn-primary': module.<%= module.name %>}"
301301
ng-model="module.<%= module.name %>"
302-
btn-checkbox
302+
uib-btn-checkbox
303303
ng-change="selectedChanged('<%= module.name %>', module.<%= module.name %>)">
304304
<%= module.displayName %>
305305
</button>

0 commit comments

Comments
 (0)