Working modal stuff

This commit is contained in:
Max Lynch
2013-10-04 17:47:54 -05:00
parent e8d76af832
commit c338f75882
12 changed files with 214 additions and 95 deletions

74
dist/ionic.js vendored
View File

@ -1731,6 +1731,51 @@ window.ionic = {
})(window.ionic);
;
(function(ionic) {
ionic.views.HeaderBar = function(opts) {
this.el = opts.el;
this._titleEl = this.el.querySelector('.title');
};
ionic.views.HeaderBar.prototype = {
resizeTitle: function() {
var e, j, i,
title,
titleWidth,
children = this.el.children;
for(i = 0, j = children.length; i < j; i++) {
e = children[i];
if(/h\d/.test(e.nodeName.toLowerCase())) {
title = e;
}
}
titleWidth = title.offsetWidth;
}
};
})(ionic);
;
(function(ionic) {
ionic.views.Modal = function(opts) {
this.el = opts.el;
};
ionic.views.Modal.prototype = {
show: function() {
this.el.classList.add('active');
},
hide: function() {
this.el.classList.remove('active');
}
};
})(ionic);
;
(function(ionic) {
ionic.views.NavBar = function(opts) {
@ -1786,35 +1831,6 @@ window.ionic = {
})(ionic);
;
(function(ionic) {
ionic.views.HeaderBar = function(opts) {
this.el = opts.el;
this._titleEl = this.el.querySelector('.title');
};
ionic.views.HeaderBar.prototype = {
resizeTitle: function() {
var e, j, i,
title,
titleWidth,
children = this.el.children;
for(i = 0, j = children.length; i < j; i++) {
e = children[i];
if(/h\d/.test(e.nodeName.toLowerCase())) {
title = e;
}
}
titleWidth = title.offsetWidth;
}
};
})(ionic);
;
(function(ionic) {
ionic.views.SideMenu = function(opts) {