Add patched version of angular-ui bootstrap lib

This patch adds patched version of angular-ui/bootstrap lib.
We need to patch it because of typeahead - one of bootstrap
components. This component does not support
ngModelOptions="{getterSetter: true}", which we need for
barricade.js integration.
Angular-ui/bootstrap upstream bug:
https://github.com/angular-ui/bootstrap/issues/3823
Until this bug is not fixed in upstream version,
we need to use this patched version of library.

Change-Id: I30a5d52d3a638fa2d7ca110d8824682c3d205611
This commit is contained in:
Paul Karikh 2015-06-17 17:22:24 +03:00
parent 8fd73d4a3a
commit 56b360126a
5 changed files with 1027 additions and 4591 deletions

View File

@ -11,7 +11,7 @@ ADD_INSTALLED_APPS = ['merlin', 'mistral']
ADD_PANEL = 'mistral.panel.MistralPanel' ADD_PANEL = 'mistral.panel.MistralPanel'
ADD_ANGULAR_MODULES = ['merlin', 'mistral'] ADD_ANGULAR_MODULES = ['merlin', 'mistral']
ADD_JS_FILES = ['merlin/js/custom-libs/ui-bootstrap-tpls-0.12.1.js', ADD_JS_FILES = ['merlin/js/custom-libs/ui-bootstrap-tpls-0.13.0.patched.js',
'merlin/js/merlin.init.js', 'merlin/js/merlin.init.js',
'merlin/js/merlin.templates.js', 'merlin/js/merlin.templates.js',
'mistral/js/mistral.init.js'] 'mistral/js/mistral.init.js']

View File

@ -43,7 +43,7 @@ module.exports = function (config) {
'merlin/static/merlin/libs/underscore/underscore-min.js', 'merlin/static/merlin/libs/underscore/underscore-min.js',
'merlin/static/merlin/libs/js-yaml/dist/js-yaml.min.js', 'merlin/static/merlin/libs/js-yaml/dist/js-yaml.min.js',
'merlin/static/merlin/js/custom-libs/barricade.js', 'merlin/static/merlin/js/custom-libs/barricade.js',
'merlin/static/merlin/js/custom-libs/ui-bootstrap-tpls-0.12.1.js', 'merlin/static/merlin/js/custom-libs/ui-bootstrap-tpls-0.13.0.patched.js',
// explicitly require first module definition file to avoid errors // explicitly require first module definition file to avoid errors
'merlin/static/merlin/js/merlin.init.js', 'merlin/static/merlin/js/merlin.init.js',
'merlin/static/merlin/js/merlin.*.js', 'merlin/static/merlin/js/merlin.*.js',

File diff suppressed because it is too large Load Diff

View File

@ -110,7 +110,6 @@ describe('merlin directives', function() {
var panel = makePanelWithInnerTags(), var panel = makePanelWithInnerTags(),
body = getPanelBody(panel); body = getPanelBody(panel);
expect(body.hasClass('collapse')).toBe(true);
expect(body.hasClass('in')).toBe(true); expect(body.hasClass('in')).toBe(true);
}); });
@ -167,7 +166,6 @@ describe('merlin directives', function() {
var element = makeGroupWithInnerTags(), var element = makeGroupWithInnerTags(),
body = getGroupBody(element); body = getGroupBody(element);
expect(body.hasClass('collapse')).toBe(true);
expect(body.hasClass('in')).toBe(true); expect(body.hasClass('in')).toBe(true);
}); });
@ -181,7 +179,6 @@ describe('merlin directives', function() {
link.triggerHandler('click'); link.triggerHandler('click');
expect(body.hasClass('collapse')).toBe(false);
expect(body.hasClass('collapsing')).toBe(true); expect(body.hasClass('collapsing')).toBe(true);
}); });