Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 77adabe

Browse files
committed
Fixed #155 Updated samples
1 parent 89a5743 commit 77adabe

9 files changed

Lines changed: 26 additions & 36 deletions

example/css/dialogs.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/faChk.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<html ng-app="modalTest">
33
<head>
44
<title>Angular-Dialogs-Service Demo v5.2.1 (Font-Awesome)</title>
5-
<script src="//code.angularjs.org/1.2.25/angular.min.js"></script>
6-
<script src="//code.angularjs.org/1.2.25/angular-sanitize.min.js"></script>
7-
<script src="js/ui-bootstrap-tpls-0.11.2.min.js"></script>
8-
<script src="js/dialogs.min.js"></script>
5+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.js"></script>
6+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.4.8/angular-sanitize.js"></script>
7+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
8+
<script src="js/dialogs.js"></script>
99
<script src="js/dialogTest2.js"></script>
1010

11-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
12-
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
11+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
12+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
1313
<link rel="stylesheet" href="css/dialogs.css">
1414

1515
<style>
@@ -25,8 +25,8 @@
2525
<body ng-controller="dialogServiceTest">
2626
<div class="row">
2727
<div class="col-md-12">
28-
<h1>Dialog Service Demo (v5.2.1) <span class="text-muted"><small>Font-Awesome Compatible</small></span></h1>
29-
<p class="text-info">(Using: Bootstrap 3.2.0, AngularJS 1.2.25, Angular UI Bootstrap 0.11.0, Font-Awesome 4.2)</p>
28+
<h1>Dialog Service Demo (v5.3) <span class="text-muted"><small>Font-Awesome Compatible</small></span></h1>
29+
<p class="text-info">(Using: Bootstrap 3.3.6, AngularJS 1.4.8, Angular UI Bootstrap 0.14.3, Font-Awesome 4.5)</p>
3030
<p>This Demo of Angular-Dialog-Service is the same as the demo for using the service without <em>Angular-Translate</em>. Except now the service checks to see if <em>Font-Awesome</em> has been loaded and will automatically use Font-Awesome icons instead of the Bootstrap "glyphicons," in the header of the predefined dialogs.</p><p>Previously glyphicons were hard wired in, if you didn't include the Bootstrap version with the glyphicons because you were using Font-Awesome instead, then nothing appeared in the dialog headers. Now the service will automatically detect that you're using Font-Awesome and include the equivalent icons for each predefined dialog.<br>
3131
</div>
3232
</div>

example/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html ng-app="modalTest">
33
<head>
4-
<script src="//code.angularjs.org/1.3.0/angular.min.js"></script>
5-
<script src="//code.angularjs.org/1.3.0/angular-sanitize.min.js"></script>
6-
<script src="//cdnjs.cloudflare.com/ajax/libs/bower-angular-translate/2.0.1/angular-translate.min.js"></script>
7-
<script src="js/ui-bootstrap-tpls-0.11.2.min.js"></script>
8-
<script src="js/dialogs-default-translations.min.js"></script>
9-
<script src="js/dialogs.min.js"></script>
4+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.js"></script>
5+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.4.8/angular-sanitize.js"></script>
6+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-translate/2.8.1/angular-translate.js"></script>
7+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
8+
<script src="js/dialogs-default-translations.js"></script>
9+
<script src="js/dialogs.js"></script>
1010
<script src="js/dialogTest.js"></script>
1111

12-
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
12+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
1313
<link rel="stylesheet" href="css/dialogs.css">
1414

1515
<style>
@@ -25,7 +25,8 @@
2525
<body ng-controller="dialogServiceTest">
2626
<div class="row">
2727
<div class="col-md-12">
28-
<h1>Dialog Service Demo <span class="text-muted"><small>(Bootstrap 3.2.0, AngularJS 1.3.0, Angular UI Bootstrap 0.11.2, Angular-Translate)</small></span></h1>
28+
<h1>Dialog Service Demo (v5.3)</h1>
29+
<p class="text-info">(Using: Bootstrap 3.3.6, AngularJS 1.4.8, Angular UI Bootstrap 0.14.3, Angular-Translate 2.8,1)</p>
2930
<p>Demo of Angular dialog service using Bootstrap 3 with Angular and Angular UI Bootstrap's modal service.</p>
3031
<p>As well as the use of <a href="https://github.com/angular-translate">Angular-Translate (https://github.com/angular-translate)</a></p><br>
3132
</div>

example/index2.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<html ng-app="modalTest">
33
<head>
44
<title>Angular-Dialogs-Service Demo v5.2.0 (without Angular-Translate option)</title>
5-
<script src="//code.angularjs.org/1.2.25/angular.min.js"></script>
6-
<script src="//code.angularjs.org/1.2.25/angular-sanitize.min.js"></script>
7-
<script src="js/ui-bootstrap-tpls-0.11.2.min.js"></script>
8-
<script src="js/dialogs.min.js"></script>
5+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.8/angular.js"></script>
6+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.4.8/angular-sanitize.js"></script>
7+
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.js"></script>
8+
<script src="js/dialogs.js"></script>
99
<script src="js/dialogTest2.js"></script>
1010

11-
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
11+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
1212
<link rel="stylesheet" href="css/dialogs.css">
1313

1414
<style>
@@ -24,8 +24,8 @@
2424
<body ng-controller="dialogServiceTest">
2525
<div class="row">
2626
<div class="col-md-12">
27-
<h1>Dialog Service Demo (v5.2.0) <span class="text-muted"><small>Sans Angular-Translate</small></span></h1>
28-
<p class="text-info">(Using: Bootstrap 3.2.0, AngularJS 1.2.25, Angular UI Bootstrap 0.11.0)</p>
27+
<h1>Dialog Service Demo (v5.3) <span class="text-muted"><small>Sans Angular-Translate</small></span></h1>
28+
<p class="text-info">(Using: Bootstrap 3.3.6, AngularJS 1.4.8, Angular UI Bootstrap 0.14.3)</p>
2929
<p>This Demo of Angular-Dialog-Service <strong>features an automatic substitution for Angular-Translate</strong>. It will detect whether or not Angular-Translate is loaded; if not it will use the included translate substitute (translate.sub) module. The translate substitution is small and modeled after Angular-Translate so that if in the future you wish to use Angular-Translate all you need to do is load the module (pascalprecht.translate) before this dialogs module.</p>
3030
<p>The result, <a href="https://github.com/angular-translate">Angular-Translate (https://github.com/angular-translate)</a> <strong>is now optional</strong>, its no longer an absolute dependency. If your application does not need a translation module then there is no need to include Angular-Translate anymore. You can however still set default modal button, header and message text via <em>$translateProvider</em> in your module's <em>config</em> function.</p><br>
3131
</div>
File renamed without changes.

example/js/dialogs-default-translations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-dialog-service - A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal
3-
* @version v5.2.9
3+
* @version v5.2.10
44
* @author Michael Conroy, michael.e.conroy@gmail.com
55
* @license MIT, http://www.opensource.org/licenses/MIT
66
*/

example/js/dialogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-dialog-service - A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal
3-
* @version v5.2.9
3+
* @version v5.2.10
44
* @author Michael Conroy, michael.e.conroy@gmail.com
55
* @license MIT, http://www.opensource.org/licenses/MIT
66
*/

example/js/ui-bootstrap-tpls-0.11.2.min.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)