Skip to content

Commit

Permalink
Fix:popup类控件文本过长时,不会自动换行的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcui1984 committed May 11, 2016
1 parent c485ce7 commit b0f391d
Show file tree
Hide file tree
Showing 6 changed files with 13,165 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -7015,7 +7015,7 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
return '<div class="' + CLASS_POPUP_INPUT + '"><input type="text" autofocus placeholder="' + (placeholder || '') + '"/></div>';
};
var createInner = function(message, title, extra) {
return '<div class="' + CLASS_POPUP_INNER + '"><div class="' + CLASS_POPUP_TITLE + '">' + title + '</div><pre class="' + CLASS_POPUP_TEXT + '">' + message + '</pre>' + (extra || '') + '</div>';
return '<div class="' + CLASS_POPUP_INNER + '"><div class="' + CLASS_POPUP_TITLE + '">' + title + '</div><div class="' + CLASS_POPUP_TEXT + '">' + message.replace(/\r\n/g, "<br/>").replace(/\n/g, "<br/>") + '</div>' + (extra || '') + '</div>';
};
var createButtons = function(btnArray) {
var length = btnArray.length;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/mui.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit b0f391d

Please sign in to comment.