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
+6 -6
View File
@@ -60,12 +60,12 @@ var Textile = {
}
],
OK: function( res ) {
var h = '';
if ( res['text'] && res['href'] ) {
return '"' + res['text'] + '":' +
res['href'];
}
else
return '';
h = '"' + res['text'] + '":' +
res['href'];
}
$.GollumEditor.replaceSelection( h );
}
});
@@ -97,7 +97,7 @@ var Textile = {
h += '(' + res['alt'] + ')';
}
h += '!';
return h;
%.GollumEditor.replaceSelection( h );
}
}
});