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

Commit

Permalink
feat(modal): add no css import script
Browse files Browse the repository at this point in the history
- Add index-nocss.js for modals

Closes #5788
  • Loading branch information
wesleycho committed Apr 12, 2016
1 parent a887d2b commit a27a4e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 11 additions & 0 deletions src/modal/index-nocss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require('../position/index-nocss.js');
require('../stackedMap');
require('../../template/modal/backdrop.html.js');
require('../../template/modal/window.html.js');
require('./modal');

var MODULE_NAME = 'ui.bootstrap.module.modal';

angular.module(MODULE_NAME, ['ui.bootstrap.modal', 'uib/template/modal/backdrop.html', 'uib/template/modal/window.html']);

module.exports = MODULE_NAME;
13 changes: 2 additions & 11 deletions src/modal/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
require('../position');
require('../stackedMap');
require('../../template/modal/backdrop.html.js');
require('../../template/modal/window.html.js');
require('./modal');

var MODULE_NAME = 'ui.bootstrap.module.modal';

angular.module(MODULE_NAME, ['ui.bootstrap.modal', 'uib/template/modal/backdrop.html', 'uib/template/modal/window.html']);

module.exports = MODULE_NAME;
require('../position/position.css');
module.exports = require('./index-nocss.js');

1 comment on commit a27a4e2

@onlywei
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wesleycho Looks like I missed this one. "modal" should also be added to that list at README.md, then.

Please sign in to comment.