Created
July 16, 2016 17:08
-
-
Save jottley/72c58e381365c63a2520d83cd0b20325 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Copyright (C) 2005-2015 Alfresco Software Limited. | |
* | |
* This file is part of Alfresco | |
* | |
* Alfresco is free software: you can redistribute it and/or modify it under the | |
* terms of the GNU Lesser General Public License as published by the Free | |
* Software Foundation, either version 3 of the License, or (at your option) any | |
* later version. | |
* | |
* Alfresco is distributed in the hope that it will be useful, but WITHOUT ANY | |
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | |
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | |
* details. | |
* | |
* You should have received a copy of the GNU Lesser General Public License | |
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. | |
*/ | |
/** | |
* @author Jared Ottley <jared.ottley@alfresco.com> | |
*/ | |
/** | |
* Cancel Changes button click handler | |
* | |
* @method onCancel | |
* @param e {object} DomEvent | |
* @param p_obj {object} Object passed back from addListener method | |
*/ | |
onCancel: function UP_onCancel(e, p_obj) | |
{ | |
this.navigateToProfile(); | |
}, | |
/** | |
* Perform URL navigation back to user profile main page | |
* | |
* @method navigateToProfile | |
*/ | |
navigateToProfile: function UP_navigateToProfile() | |
{ | |
var pageIndex = document.location.href.lastIndexOf('/'); | |
document.location.href = document.location.href.substring(0, pageIndex + 1) + “profile”; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment