Fixing markup defs to conform to new OK event style

This commit is contained in:
Eston Bond
2010-11-03 16:36:47 -07:00
parent bc0c611ea4
commit 4f166dc144
4 changed files with 23 additions and 30 deletions
+3 -5
View File
@@ -76,12 +76,12 @@ var MarkDown = {
}
],
OK: function( res ) {
var rep = '';
if ( res['text'] && res['href'] ) {
return '[' + res['text'] + ']('
rep = '[' + res['text'] + ']('
+ res['href'] + ')';
}
else
return '';
$.GollumEditor.replaceSelection( rep );
}
});
}
@@ -118,8 +118,6 @@ var MarkDown = {
};
// this is necessary for GollumEditor to pick this up
jQuery.GollumEditor.defineLanguage('markdown', MarkDown);
})();