showMaximized in view and edit showModalDialog

Forums vLooup for SharePoint showMaximized in view and edit showModalDialog

This topic contains 2 replies, has 2 voices, and was last updated by  lzuhuo 1 day, 4 hours ago.

  • Author
    Posts
  • #22212

    lzuhuo
    Participant

    Hi Alex.

    I checked that only for NewForm is able to show maximized. Is it possible include on buttons of view and edit too? Thanks

  • #22243

    Alexander Bautz
    Keymaster

    Hi,
    I’ll add the showMaximized icon in the header in the next version, but if you like to override it now you can add this snippet to your Custom JS:

    spjs.vLookup.openInDialog = function (URL, fin, rAll) {
    	var options = {
    		"allowMaximize":true,
    		"showMaximized":true,
    		"showClose":true
    	};
    	SP.UI.ModalDialog.commonModalDialogOpen(URL,options, function(result){
    		if (spjs.vLookup.data.isListView) {
    			if (result === 1) {
    				location.href = location.href;
    			}
    		} else {
    			spjs.vLookup._init(fin, rAll);
    			if (typeof vlookupChildViewOrEditCallback !== "undefined") {
    				vlookupChildViewOrEditCallback(fin, result);
    			}
    		}
    	});
    };

    I have added in the “showMaximized”:true parameter also, but this will not be set to true in the next version – only the icon for manually expanding to full screen will be show.

    Alexander

  • #22520

    lzuhuo
    Participant

    Thanks a lot Alex
    Worked perfect

You must be logged in to reply to this topic.