Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F848012
D242.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Apr 19, 9:55 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Apr 20, 9:55 PM (1 h, 37 m)
Engine
blob
Format
Raw Data
Handle
602780
Attached To
D242: INP-1580 - Set current user ID to current frame for Change Password dialog
D242.diff
View Options
Index: branches/5.2.x/core/admin_templates/head.tpl
===================================================================
--- branches/5.2.x/core/admin_templates/head.tpl
+++ branches/5.2.x/core/admin_templates/head.tpl
@@ -110,13 +110,16 @@
}
function change_password() {
- getFrame('main').set_hidden_field('u_id', <inp2:m_get name="u.current_id" no_html_escape="1" js_escape="1"/>);
+ var $user_id = Number('<inp2:m_get name="u.current_id" no_html_escape="1" js_escape="1"/>');
- <inp2:m_if check="m_GetEquals" name="u.current_id" value="-1">
- open_popup('u', '', 'users/root_edit_password');
- <inp2:m_else/>
- open_popup('u', '', 'users/user_edit_password');
- </inp2:m_if>
+ if ( $modal_windows ) {
+ getFrame('main').set_hidden_field('u_id', $user_id);
+ }
+ else {
+ set_hidden_field('u_id', $user_id);
+ }
+
+ open_popup('u', '', '<inp2:m_if check="m_GetEquals" name="u.current_id" value="-1">users/root_edit_password<inp2:m_else/>users/user_edit_password</inp2:m_if>');
}
$FrameResizer = new FrameResizer('<inp2:m_Phrase name="la_ToolTip_ShowMenu" js_escape="1"/>', '<inp2:m_Phrase name="la_ToolTip_HideMenu" js_escape="1"/>', window.parent, '<inp2:m_Link pass="m,adm" adm_event="OnSaveSetting" var_name="#NAME#" var_value="#VALUE#" no_amp="1" js_escape="1"/>', <inp2:adm_MenuFrameWidth/>);
Event Timeline
Log In to Comment