share/views/public/js/rbbt.modal.js in rbbt-rest-1.8.45 vs share/views/public/js/rbbt.modal.js in rbbt-rest-1.8.46

- old
+ new

@@ -29,19 +29,17 @@ ctrl.show = function(content, title){ this._set(content, title) $(this.vm.element).addClass('active') ctrl.vm.url = undefined m.redraw() - update_rbbt() } ctrl.error = function(content, title){ this._set(content, title) $(this.vm.element).addClass('active') $(this.vm.element).addClass('error') m.redraw() - update_rbbt() } ctrl.show_url = function(url, title){ if (typeof url == 'string') params = {url: url, method: 'GET',deserialize: function(v){return v}} else params = url @@ -93,10 +91,14 @@ var link_button = rbbt.mview.ibutton({onclick: ctrl.link, class:'small link', style: 'margin-top: -4px'}, m('a', {href: ctrl.vm.url},[ m('i.icon.external')])) header = [title, close_button, link_button]; }else{ header = [title, close_button]; } - var modal_content = [m('.header', header), m('.content', content)]; + + var modal_content = [ + m('.header', header), + m('.content', {config: function(e1,isInit,ctx){ update_dom() }}, content) + ]; return modal_content; }else{ return ""; } }