diff --git a/app/assets/javascripts/app/controllers/_ui_element/postmaster_set.coffee b/app/assets/javascripts/app/controllers/_ui_element/postmaster_set.coffee index ae28aae1c..0be3c3834 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/postmaster_set.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/postmaster_set.coffee @@ -257,9 +257,9 @@ class App.UiElement.postmaster_set attributeConfig = elements[groupAndAttribute] if !attributeConfig || !attributeConfig.operator - elementRow.find('.js-operator').addClass('hide') + elementRow.find('.js-operator').parent().addClass('hide') else - elementRow.find('.js-operator').removeClass('hide') + elementRow.find('.js-operator').parent().removeClass('hide') if attributeConfig && attributeConfig.operator for operator in attributeConfig.operator operatorName = App.i18n.translateInline(operator) diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee index eaa6fdbab..6ad309d16 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee @@ -214,9 +214,9 @@ class App.UiElement.ticket_perform_action selection = $("") attributeConfig = elements[groupAndAttribute] if !attributeConfig || !attributeConfig.operator - elementRow.find('.js-operator').addClass('hide') + elementRow.find('.js-operator').parent().addClass('hide') else - elementRow.find('.js-operator').removeClass('hide') + elementRow.find('.js-operator').parent().removeClass('hide') if attributeConfig && attributeConfig.operator for operator in attributeConfig.operator operatorName = App.i18n.translateInline(operator) @@ -261,12 +261,12 @@ class App.UiElement.ticket_perform_action attribute.tag = 'autocompletion_ajax' if !preCondition elementRow.find('.js-preCondition select').html('') - elementRow.find('.js-preCondition').addClass('hide') + elementRow.find('.js-preCondition').closest('.controls').addClass('hide') toggleValue() @buildValue(elementFull, elementRow, groupAndAttribute, elements, meta, attribute) return - elementRow.find('.js-preCondition').removeClass('hide') + elementRow.find('.js-preCondition').closest('.controls').removeClass('hide') name = "#{attribute.name}::#{groupAndAttribute}::pre_condition" selection = $("") @@ -289,7 +289,7 @@ class App.UiElement.ticket_perform_action if key is meta.pre_condition selected = 'selected="selected"' selection.append("") - elementRow.find('.js-preCondition').removeClass('hide') + elementRow.find('.js-preCondition').closest('.controls').removeClass('hide') elementRow.find('.js-preCondition select').replaceWith(selection) elementRow.find('.js-preCondition select').bind('change', (e) -> @@ -322,6 +322,8 @@ class App.UiElement.ticket_perform_action if config.tag is 'checkbox' config.tag = 'select' tagSearch = "#{config.tag}_search" + if config.tag is 'datetime' + config.validationContainer = 'self' if App.UiElement[tagSearch] item = App.UiElement[tagSearch].render(config, {}) else diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee index 15fdef091..d8fb5cad9 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee @@ -369,12 +369,12 @@ class App.UiElement.ticket_selector attribute.tag = 'autocompletion_ajax' if !preCondition elementRow.find('.js-preCondition select').html('') - elementRow.find('.js-preCondition').addClass('hide') + elementRow.find('.js-preCondition').closest('.controls').addClass('hide') toggleValue() @buildValue(elementFull, elementRow, groupAndAttribute, elements, meta, attribute) return - elementRow.find('.js-preCondition').removeClass('hide') + elementRow.find('.js-preCondition').closest('.controls').removeClass('hide') name = "#{attribute.name}::#{groupAndAttribute}::pre_condition" selection = $("") @@ -395,7 +395,7 @@ class App.UiElement.ticket_selector if key is meta.pre_condition selected = 'selected="selected"' selection.append("") - elementRow.find('.js-preCondition').removeClass('hide') + elementRow.find('.js-preCondition').closest('.controls').removeClass('hide') elementRow.find('.js-preCondition select').replaceWith(selection) elementRow.find('.js-preCondition select').bind('change', (e) -> @@ -436,6 +436,8 @@ class App.UiElement.ticket_selector config.guess = false if config.tag is 'checkbox' config.tag = 'select' + if config.tag is 'datetime' + config.validationContainer = 'self' tagSearch = "#{config.tag}_search" if App.UiElement[tagSearch] item = App.UiElement[tagSearch].render(config, {}) @@ -450,7 +452,7 @@ class App.UiElement.ticket_selector elementRow.find('.js-value').removeClass('hide').html(item) if meta.operator is 'has changed' elementRow.find('.js-value').addClass('hide') - elementRow.find('.js-preCondition').addClass('hide') + elementRow.find('.js-preCondition').closest('.controls').addClass('hide') else elementRow.find('.js-value').removeClass('hide') diff --git a/app/assets/javascripts/app/controllers/report_profile.coffee b/app/assets/javascripts/app/controllers/report_profile.coffee index f29378eac..aeb631f38 100644 --- a/app/assets/javascripts/app/controllers/report_profile.coffee +++ b/app/assets/javascripts/app/controllers/report_profile.coffee @@ -25,6 +25,7 @@ class ReportProfile extends App.ControllerSubContent { name: 'New Profile', 'data-type': 'new', class: 'primary' } ] container: @el.closest('.content') + veryLarge: true ) show: (params) => diff --git a/app/assets/javascripts/app/views/generic/postmaster_match.jst.eco b/app/assets/javascripts/app/views/generic/postmaster_match.jst.eco index 5d047f42c..1aba26b69 100644 --- a/app/assets/javascripts/app/views/generic/postmaster_match.jst.eco +++ b/app/assets/javascripts/app/views/generic/postmaster_match.jst.eco @@ -12,7 +12,7 @@ <%- @Icon('arrow-down') %> -
+
@@ -23,4 +23,4 @@
- \ No newline at end of file + diff --git a/app/assets/javascripts/app/views/generic/postmaster_set_row.jst.eco b/app/assets/javascripts/app/views/generic/postmaster_set_row.jst.eco index a15c52daf..4c2e3174e 100644 --- a/app/assets/javascripts/app/views/generic/postmaster_set_row.jst.eco +++ b/app/assets/javascripts/app/views/generic/postmaster_set_row.jst.eco @@ -11,7 +11,7 @@ <%- @Icon('arrow-down') %> -
+
@@ -21,4 +21,4 @@ <%- @Icon('plus-small') %>
- \ No newline at end of file + diff --git a/app/assets/javascripts/app/views/generic/ticket_perform_action/attribute_selector.jst.eco b/app/assets/javascripts/app/views/generic/ticket_perform_action/attribute_selector.jst.eco index 35e9a8ed1..b887cf789 100644 --- a/app/assets/javascripts/app/views/generic/ticket_perform_action/attribute_selector.jst.eco +++ b/app/assets/javascripts/app/views/generic/ticket_perform_action/attribute_selector.jst.eco @@ -1,15 +1,15 @@
-
+
<%- @Icon('arrow-down', 'dropdown-arrow') %>
-
+
<%- @Icon('arrow-down', 'dropdown-arrow') %>
-
+
diff --git a/app/assets/javascripts/app/views/generic/ticket_perform_action/row.jst.eco b/app/assets/javascripts/app/views/generic/ticket_perform_action/row.jst.eco index 7adbf37da..c15d8c6ca 100644 --- a/app/assets/javascripts/app/views/generic/ticket_perform_action/row.jst.eco +++ b/app/assets/javascripts/app/views/generic/ticket_perform_action/row.jst.eco @@ -5,7 +5,7 @@ <%- @Icon('arrow-down', 'dropdown-arrow') %>
-
+
@@ -17,4 +17,4 @@ <%- @Icon('plus-small') %> - \ No newline at end of file + diff --git a/app/assets/javascripts/app/views/generic/ticket_selector_row.jst.eco b/app/assets/javascripts/app/views/generic/ticket_selector_row.jst.eco index 46b09fde5..34af5d8cc 100644 --- a/app/assets/javascripts/app/views/generic/ticket_selector_row.jst.eco +++ b/app/assets/javascripts/app/views/generic/ticket_selector_row.jst.eco @@ -1,11 +1,11 @@
-
+
<%- @Icon('arrow-down', 'dropdown-arrow') %>
-
+
<%- @Icon('arrow-down', 'dropdown-arrow') %> diff --git a/app/assets/javascripts/app/views/generic/time_range.jst.eco b/app/assets/javascripts/app/views/generic/time_range.jst.eco index d933027a0..02cac2d37 100644 --- a/app/assets/javascripts/app/views/generic/time_range.jst.eco +++ b/app/assets/javascripts/app/views/generic/time_range.jst.eco @@ -1,4 +1,5 @@
+