MediaWiki:RefToolbar.js: Difference between revisions

Content deleted Content added
Move initializeRefTools to a default gadget (step 3)
removed incompatible space after Cite template insertion as per MediaWiki talk:RefToolbar.js#Insertion of blank / wikEd_compatibility
Line 96:
buttons: {
'cite-form-submit': function() {
$.wikiEditor.modules.toolbar.fn.doAction( $(this).data( 'context' ), {
type: 'encapsulate',
options: {
peri: ' '
}
}, $(this) );
var ref = CiteTB.getRef(false, true);
$(this).dialog( 'close' );
Line 107 ⟶ 101:
type: 'encapsulate',
options: {
prepost: ref
}
}, $(this) );
Line 243 ⟶ 237:
return;
}
$.wikiEditor.modules.toolbar.fn.doAction( $(this).data( 'context' ), {
type: 'encapsulate',
options: {
peri: ' '
}
}, $(this) );
$(this).dialog( 'close' );
$.wikiEditor.modules.toolbar.fn.doAction( $(this).data( 'context' ), {
type: 'encapsulate',
options: {
prepost: CiteTB.getNamedRef(refname, true)
}
}, $(this) );