mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 00:06:49 +00:00
Merge "Remove template for insert-link dialog"
This commit is contained in:
commit
3bcaa37303
|
@ -79,7 +79,6 @@
|
|||
},
|
||||
"templates": {
|
||||
"dialogInsertFile.html": "templates/dialogInsertFile.html",
|
||||
"dialogInsertLink.html": "templates/dialogInsertLink.html",
|
||||
"dialogInsertReference.html": "templates/dialogInsertReference.html",
|
||||
"dialogInsertTable.html": "templates/dialogInsertTable.html",
|
||||
"dialogReplace.html": "templates/dialogReplace.html"
|
||||
|
|
|
@ -105,13 +105,13 @@
|
|||
'insert-link': {
|
||||
titleMsg: 'wikieditor-toolbar-tool-link-title',
|
||||
id: 'wikieditor-toolbar-link-dialog',
|
||||
htmlTemplate: 'dialogInsertLink.html',
|
||||
html: $( '<fieldset>' ).append(
|
||||
insertLinkTitleInputField.$element,
|
||||
insertLinkLinkTextField.$element,
|
||||
insertLinkLinkTypeField.$element
|
||||
),
|
||||
|
||||
init: function () {
|
||||
$( '.wikieditor-toolbar-link-target' ).replaceWith( insertLinkTitleInputField.$element );
|
||||
$( '.wikieditor-toolbar-link-text' ).replaceWith( insertLinkLinkTextField.$element );
|
||||
$( '.wikieditor-toolbar-link-type' ).replaceWith( insertLinkLinkTypeField.$element );
|
||||
|
||||
// Automatically copy the value of the internal link page title field to the link text field unless the
|
||||
// user has changed the link text field - this is a convenience thing since most link texts are going to
|
||||
// be the same as the page title - Also change the internal/external radio button accordingly
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<fieldset>
|
||||
<div class="wikieditor-toolbar-link-target"></div>
|
||||
<div class="wikieditor-toolbar-link-text"></div>
|
||||
<div class="wikieditor-toolbar-link-type"></div>
|
||||
</fieldset>
|
Loading…
Reference in a new issue