Univention Bugzilla – Attachment 7058 Details for
Bug 39033
Browser history back/next buttons are not correctly integrated
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for UDM module
bug20714_udm.patch (text/plain), 2.26 KB, created by
Alexander Kläser
on 2015-07-28 13:51:27 CEST
(
hide
)
Description:
Patch for UDM module
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2015-07-28 13:51:27 CEST
Size:
2.26 KB
patch
obsolete
>diff --git a/management/univention-management-console-module-udm/umc/js/udm.js b/management/univention-management-console-module-udm/umc/js/udm.js >index d8e3cab..545c86f 100644 >--- a/management/univention-management-console-module-udm/umc/js/udm.js >+++ b/management/univention-management-console-module-udm/umc/js/udm.js >@@ -338,6 +338,53 @@ define([ > > // register onClose events > this.on('close', lang.hitch(this, 'onCloseTab')); >+ >+ // watch the state of the currently focused page >+ this._loadUCRVariables().then(lang.hitch(this, function() { >+ this.watch('selectedChildWidget', lang.hitch(this, '_updateModuleState')); >+ })); >+ }, >+ >+ _updateModuleState: function() { >+ tools.defer(lang.hitch(this, function() { >+ this.set('moduleState', this.get('moduleState')); >+ }), 0); >+ }, >+ >+ _setModuleStateAttr: function(_state) { >+ var currentState = this.get('moduleState'); >+ if (this._created && _state == this.moduleState || currentState == _state) { >+ this._set('moduleState', _state); >+ return; >+ } >+ var state = _state.split(':'); >+ if (!state.length || (state.length == 1 && state[0] == '')) { >+ if (this._searchPage) { >+ this.selectChild(this._searchPage); >+ } >+ } >+ else { >+ var objType = state.shift(); >+ var ldapName = state.length > 1 ? state : state[0]; >+ this._loadUCRVariables().then(lang.hitch(this, function() { >+ this.createDetailPage(objType, ldapName); >+ })); >+ } >+ this._set('moduleState', _state); >+ }, >+ >+ _getModuleStateAttr: function() { >+ var state = []; >+ if (this.selectedChildWidget && this.selectedChildWidget == this._detailPage) { >+ var objectType = this._detailPage.objectType; >+ var ldapName = this._detailPage.ldapName; >+ state = [objectType]; >+ if (ldapName && !(ldapName instanceof Array)) { >+ state.push(ldapName); >+ } >+ } >+ return state.join(':'); >+ > }, > > _ldapDN2TreePath: function( ldapDN ) { >@@ -1586,10 +1633,11 @@ define([ > } else { > this.selectChild(this._detailPage); > } >- this._detailPage.ready().then(function() { >- }, lang.hitch(this, function() { >+ this._detailPage.ready().then(lang.hitch(this, '_updateModuleState'), >+ lang.hitch(this, function() { > this.closeDetailPage(); > })); >+ > }, > > closeDetailPage: function() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39033
: 7058