Last active
September 8, 2017 21:30
-
-
Save jammykam/87c2462af3d1902439e70701fc8b8e3d to your computer and use it in GitHub Desktop.
Sitecore 8 Experience Editor – Edit Component Properties causes page to jumps to top
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sitecore.PageModes.ChromeControls = Sitecore.PageModes.ChromeControls.extend({ | |
renderCommandTag: function (command, chrome, isMoreCommand) { | |
var tag = this.base(command, chrome, isMoreCommand); | |
if (command.click.indexOf("chrome:") == 0) { | |
if (command.type == "common" || command.type == "datasourcesmenu" || command.type == "workflow") { | |
tag.click(function (e) { | |
e.stop(); | |
}); | |
} | |
} | |
return tag; | |
} | |
}, | |
{ | |
commandRenderers: Sitecore.PageModes.ChromeControls.commandRenderers, | |
eventNameSpace: Sitecore.PageModes.ChromeControls.eventNameSpace, | |
registerCommandRenderer: Sitecore.PageModes.ChromeControls.registerCommandRenderer | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment