Size values for Confluence Insert link Dialog


I cannot provide width,height parametr to make Confluence Insert link Dialog. So, the one that appears with default size is bigger one and it's not scrollable. Following is the code for the dialog:

(function($) {

    // The tab registers itself when the Link Browser is created.
    AJS.bind("", function (e, linkBrowser) {

        var key = 'demo',    // This panel's key: must match the ID of the web-item link and panel template
            $linkField,      // The jQueryfied link input element.
            thisPanel,       // A reference to this panel, stored when the panel is created
            tab;             // A reference to the tab

        // Define the available Link Browser Advanced tab methods.
        tab = linkBrowser.tabs[key] = {
            // called when the panel is created - register event handlers here
          createPanel: function (context) { thisPanel = context.baseElement;
                $linkField = thisPanel.find("input[name='destination']");               
                    url: AJS.contextPath() + "/rest/dreambroker-rest/1.0/dreambroker/videoList",                    
                    type: "GET",         
                    dataType: "xml",
                    success: function(data){
                    	//alert("in success");                   		
                    		//alert('form found');
                    		 var vdoSelect = AJS.$("#videos");   
                    		// vdoSelect.append("<option class='ddindent'>Select</option>"); 
                              // alert("title=" + AJS.$(this).find("title").text() + "url=" + AJS.$(this).find("url").text());  
                               var vdoTitle = AJS.$(this).find("title").text();
                               var vdoUrl = AJS.$(this).find("url").text();
                               vdoSelect.append("<option class='ddindent' value='"+ vdoUrl +"'>"+vdoTitle+"</option>");
                        return false;

            	      error: function(response) {



                thisPanel.find("form").keydown(function(e) {
                    if(e.keyCode == 13 && !linkBrowser.isSubmitButtonEnabled()) {
                $linkField.keyup(function (e) {
                    AJS.log("link field keyup");
                    var url = $linkField.val();
                    var linkObj = url ? Confluence.Link.makeExternalLink(url) : null;
                    if (linkObj) {
                        linkBrowser.setLink(linkObj); // will enable the Submit button when a URL is added

            // Called when the panel is selected
            onSelect: function () {            	
                // Defer focus to after dialog is shown, gets around AJS.Dialog tabindex issues
                setTimeout(function() {

            // Called when this panel is no longer selected
            onDeselect: function () {

            // Called when the submit button is clicked, before the location is retrieved
            preSubmit: function () {

            // Called before the dialog opens to determine which tab to highlight
            handlesLink: function (linkObj) {
                // return true if the link should be cause this panel to be selected when editing
                return false;
   // AJS.$.ajax({ 
   // }); 


The dialog gets created at the bold lines in the code, now I need to provide width, height parameters or scroll parameter. Can someone help me?


1 answer

Is this the problem that you're referring to? (See screen shot)  If so, I have the some complaint/frustration.  Would love to get some help to resolve it!  (PS I know this is an old post, but I still haven't found a way to resolve it and we're running Conf 5.5.6)





Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,149 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you