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
+5 -9
View File
@@ -56,12 +56,9 @@ var Creole = {
}
],
OK: function( res ) {
if ( res['text'] && res['href'] ) {
return '[[' + res['href'] + '|' +
res['text'] + ']]';
}
else
return '';
var h = '[[' + res['href'] + '|' +
res['text'] + ']]';
$.GollumEditor.replaceSelection( h );
}
});
@@ -92,9 +89,8 @@ var Creole = {
if ( res['alt'] != '' ) {
h += '|' + res['alt'] + '}}';
}
return h;
} else
return '';
}
$.GollumEditor.replaceSelection( h );
}
});
}