Univention Bugzilla – Attachment 9035 Details for
Bug 19928
Add "Add all" checkbox to selection widgets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
19928.patch (text/plain), 4.80 KB, created by
Johannes Keiser
on 2017-07-17 15:04:26 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Johannes Keiser
Created:
2017-07-17 15:04:26 CEST
Size:
4.80 KB
patch
obsolete
>Index: css/Grid.styl >=================================================================== >diff --git a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/css/Grid.styl b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/css/Grid.styl >--- a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/css/Grid.styl (Revision 81201) >+++ b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/css/Grid.styl (Arbeitskopie) >@@ -4,23 +4,47 @@ > overflow-y: scroll > overflow-x: hidden > >-.umc .umcMultiSelect .dojoxGridView >- min-width: 100% >- max-width: 100% >+.umc .umcMultiSelect >+ .dojoxGridMasterHeader >+ background-color: white > >- .dojoxGridContent >+ .dojoxGridHeader >+ background-color: @background-color >+ display: none >+ >+ ^[-2].umcMultiSelectWithContent ^[-2..-1] >+ display: block >+ >+ .dojoxGridCell >+ background-color: @background-color >+ color: $text-color >+ >+ .dijitCheckBox >+ icon-image(0, -48, "", "-small", 12px, 12px) >+ >+ &.dijitCheckBoxChecked >+ background-position: -48px -48px >+ >+ .dojoxGridView > min-width: 100% > max-width: 100% > >- div[role="presentation"] >+ ^[-1].umcMultiSelectWithContent ^[-1..-1] >+ border-top: 1px solid black >+ >+ .dojoxGridContent >+ min-width: 100% > max-width: 100% > >- .dojoxGridRow >+ div[role="presentation"] > max-width: 100% > >- .dojoxGridRowTable >- width: 100% !important >+ .dojoxGridRow >+ max-width: 100% > >+ .dojoxGridRowTable >+ width: 100% !important >+ > .umc .umcGrid > background-color: #fff > material-shadow(1) >Index: js/de.po >=================================================================== >diff --git a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/de.po b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/de.po >--- a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/de.po (Revision 81201) >+++ b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/de.po (Arbeitskopie) >@@ -7,7 +7,7 @@ > msgstr "" > "Project-Id-Version: univention-management-console-frontend\n" > "Report-Msgid-Bugs-To: packages@univention.de\n" >-"POT-Creation-Date: 2017-06-20 18:42+0200\n" >+"POT-Creation-Date: 2017-06-27 18:43+0200\n" > "PO-Revision-Date: 2013-09-12 11:31+0200\n" > "Last-Translator: Univention GmbH <packages@univention.de>\n" > "Language-Team: Univention GmbH <packages@univention.de>\n" >@@ -357,6 +357,10 @@ > msgid "Search term" > msgstr "Suchbegriff" > >+#: widgets/MultiSelect.js:77 >+msgid "Select all" >+msgstr "Alles auswählen" >+ > #: tools.js:872 > msgid "Send as email" > msgstr "Als E-Mail senden" >Index: js/widgets/MultiSelect.js >=================================================================== >diff --git a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/widgets/MultiSelect.js b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/widgets/MultiSelect.js >--- a/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/widgets/MultiSelect.js (Revision 81201) >+++ b/branches/ucs-4.2/ucs-4.2-1/management/univention-web/js/widgets/MultiSelect.js (Arbeitskopie) >@@ -33,7 +33,6 @@ > "dojo/_base/lang", > "dojo/_base/array", > "dojo/Deferred", >- "dojo/query", > "dojo/dom-class", > "dojox/grid/EnhancedGrid", > "../tools", >@@ -41,9 +40,10 @@ > "./_FormWidgetMixin", > "./StandbyMixin", > "./_RegisterOnShowMixin", >+ "umc/i18n!", > "dojox/grid/enhanced/plugins/IndirectSelection", > "dojox/grid/cells" >-], function(declare, lang, array, Deferred, query, domClass, EnhancedGrid, tools, _SelectMixin, _FormWidgetMixin, StandbyMixin, _RegisterOnShowMixin) { >+], function(declare, lang, array, Deferred, domClass, EnhancedGrid, tools, _SelectMixin, _FormWidgetMixin, StandbyMixin, _RegisterOnShowMixin, _) { > return declare("umc.widgets.MultiSelect", [ EnhancedGrid, _FormWidgetMixin, _SelectMixin, StandbyMixin, _RegisterOnShowMixin ], { > // summary: > // This class represents a MultiSelect widget. Essentially, it adapts a DataGrid >@@ -74,7 +74,7 @@ > // simple grid structure, only one column > structure: [{ > field: 'label', >- name: 'Name', >+ name: lang.replace('<b>{0}</b>', [_('Select all')]), > width: '100%' > }], > >@@ -99,9 +99,6 @@ > postCreate: function() { > this.inherited(arguments); > >- // hide the header >- query('.dojoxGridHeader', this.domNode).style('height', '0px'); >- > // send an onChange event when the selection has changed > this.on('selectionChanged', lang.hitch(this, function() { > if (array.some(this.selection.getSelected(), function(v) { return v === null; })) { >@@ -237,7 +234,7 @@ > // stop standby animation and re-render > this.standby(false); > this.render(); >- } >+ }, > > /*adaptHeight: function() { > this.inherited(arguments); >@@ -247,6 +244,11 @@ > this.scroller.windowHeight = parseInt(this.height, 10); > } > }*/ >+ >+ render: function() { >+ domClass.toggle(this.domNode, 'umcMultiSelectWithContent', this.get('rowCount')); >+ this.inherited(arguments); >+ } > }); > }); >
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 19928
:
9035
|
9036