Advertisement
RyanFarley

Untitled

Oct 24th, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require(['dojo/aspect', 'Sage/Link'], function(aspect, link) {
  2.     aspect.around(link, 'editHistory', function(originalEditHistory) {
  3.         return function(id, args) {
  4.             if (Sage.Utility.getPageName().toLowerCase() == 'history.aspx') {
  5.                 // do something here for your custom page
  6.             }
  7.             else {
  8.                 // not on history page, do default behavior
  9.                 originalEditHistory.apply(this, arguments);
  10.             }
  11.         }
  12.     });
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement