Skip to content

Commit

Permalink
Merge pull request #34 from tomoconnor/fix_trim_issue_32
Browse files Browse the repository at this point in the history
In django-admin, $ does not = jQuery.  Changing $.trim() to jQuery.trim(...
  • Loading branch information
klen committed Oct 6, 2014
2 parents 861805f + 4a6f8cb commit 6aaa2da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mySettings = {
miu = {
markdownTitle: function(markItUp, achar) {
heading = '';
n = $.trim(markItUp.selection||markItUp.placeHolder).length;
n = jQuery.trim(markItUp.selection||markItUp.placeHolder).length;
// work around bug in python-markdown where header underlines must be at least 3 chars
if (n < 3) { n = 3; }
for(i = 0; i < n; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mySettings = {
miu = {
markdownextraTitle: function(markItUp, achar) {
heading = '';
n = $.trim(markItUp.selection||markItUp.placeHolder).length;
n = jQuery.trim(markItUp.selection||markItUp.placeHolder).length;
for(i = 0; i < n; i++) {
heading += achar;
}
Expand Down

0 comments on commit 6aaa2da

Please sign in to comment.