mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
N°2847 Correctly open/close Activity new entry form
This commit is contained in:
@@ -22,10 +22,15 @@ $ibo-activity-panel--body--add-caselog-entry--toggler--icon--width: $ibo-activit
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--font-size: 16px !default;
|
||||
$ibo-activity-panel--body--add-caselog-entry--toggler--icon--line-height: 33px !default;
|
||||
.ibo-activity-new-entry-form{
|
||||
display: none;
|
||||
$ibo-activity-new-entry-form--width: 100%;
|
||||
background-color: $ibo-activity-new-entry-form--background-color;
|
||||
padding: $ibo-activity-new-entry-form--padding;
|
||||
&.ibo-is-opened{
|
||||
display: block;
|
||||
}
|
||||
&.ibo-is-closed{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ibo-activity-new-entry-form--actions{
|
||||
display: flex;
|
||||
@@ -58,6 +63,9 @@ $ibo-activity-panel--body--add-caselog-entry--toggler--icon--line-height: 33px !
|
||||
&:hover {
|
||||
color: $ibo-activity-panel--body--add-caselog-entry--toggler--color;
|
||||
}
|
||||
&.ibo-is-hidden{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.ibo-activity-new-entry-form--action-buttons--right-actions > .ibo-popover-menu{
|
||||
z-index: 1;
|
||||
|
||||
@@ -29,10 +29,8 @@ $(function() {
|
||||
},
|
||||
css_classes:
|
||||
{
|
||||
is_expanded: 'ibo-is-expanded',
|
||||
is_opened: 'ibo-is-opened',
|
||||
is_closed: 'ibo-is-closed',
|
||||
is_active: 'ibo-is-active',
|
||||
is_hidden: 'ibo-is-hidden',
|
||||
},
|
||||
js_selectors:
|
||||
@@ -76,12 +74,13 @@ $(function() {
|
||||
});
|
||||
},
|
||||
_ShowNewEntryForm: function () {
|
||||
$(this.js_selectors.form).show();
|
||||
$(this.js_selectors.toggler).hide();
|
||||
$(this.js_selectors.form).addClass(this.css_classes.is_opened).removeClass(this.css_classes.is_closed);
|
||||
$(this.js_selectors.toggler).addClass(this.css_classes.is_hidden);
|
||||
},
|
||||
_HideNewEntryForm: function () {
|
||||
$(this.js_selectors.form).hide();
|
||||
$(this.js_selectors.toggler).show();
|
||||
$(this.js_selectors.form).addClass(this.css_classes.is_closed).removeClass(this.css_classes.is_opened);
|
||||
$(this.js_selectors.toggler).removeClass(this.css_classes.is_hidden);
|
||||
//$(this).children(this.js_selectors.caselog_picker).popover_menu('closePopup');
|
||||
},
|
||||
_SubmitNewEntryToCaselog: function(sData, sCaselog)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="{{ oUIBlock.GetId() }}" class="ibo-activity-new-entry-form" data-role="ibo-activity-new-entry-form">
|
||||
<div id="{{ oUIBlock.GetId() }}" class="ibo-activity-new-entry-form ibo-is-closed" data-role="ibo-activity-new-entry-form">
|
||||
<div class="ibo-activity-new-entry-form--text-input" data-role="ibo-activity-new-entry-form--text-input">
|
||||
{{ render_block(oUIBlock.GetFormTextInput(), {aPage: aPage}) }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user