Univention Bugzilla – Attachment 4853 Details for
Bug 29498
Grid reloads when having Superordinates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
reload bei form.ready()
29498.patch (text/plain), 1.69 KB, created by
Dirk Wiesenthal
on 2012-11-30 17:23 CET
(
hide
)
Description:
reload bei form.ready()
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2012-11-30 17:23 CET
Size:
1.69 KB
patch
obsolete
>Index: umc/js/udm.js >=================================================================== >--- umc/js/udm.js (Revision 37565) >+++ umc/js/udm.js (Arbeitskopie) >@@ -436,11 +416,7 @@ > var found = false; > this._searchForm._widgets.superordinate.store.fetch( { onItem: lang.hitch( this, function( item ) { > if ( this._searchForm._widgets.superordinate.store.getValue( item, 'id' ) == keys[ 0 ] ) { >- var handle = this._searchForm._widgets.objectPropertyValue.on('valuesLoaded', lang.hitch( this, function() { >- this.filter(this._searchForm.gatherFormValues()); >- this.disconnect(handle); >- } ) ); >- this._searchForm._widgets.superordinate.set( 'value', keys[ 0 ] ); >+ this._searchForm.getWidget('superordinate').set( 'value', keys[ 0 ] ); > found = true; > return false; > } >@@ -780,19 +755,18 @@ > } > > // a superordinate has been selected and we do not have a 'up' button so far -> add the button >- this._upButton = this.own(new Button({ >+ this._upButton = new Button({ > label: label, > iconClass: 'umcIconUp', > callback: lang.hitch(this, function() { > this._searchForm.getWidget('superordinate').set('value', 'None'); >- >- // we can relaunch the search after all search form values >- // have been updated >- on.once(this._searchForm.getWidget('objectPropertyValue'), 'valuesLoaded', lang.hitch(this, 'filter')); > }) >- }))[0]; >+ }); > this._grid._toolbar.addChild(this._upButton, 0); > } >+ // we can relaunch the search after all search form values >+ // have been updated >+ this._searchForm.ready().then(lang.hitch(this, 'filter')); > }))); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 29498
: 4853