@ -39,7 +39,7 @@ jQuery(document).ready(function($) {
$ ( "#timeline_options_grouping_two_sort" ) ,
$ ( "#timeline_options_grouping_two_sort" ) ,
$ ( "#timeline_options_planning_element_time_relative_one_unit" ) ,
$ ( "#timeline_options_planning_element_time_relative_one_unit" ) ,
$ ( "#timeline_options_planning_element_time_relative_two_unit" )
$ ( "#timeline_options_planning_element_time_relative_two_unit" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
$ ( "input[name='" + $ ( item ) . attr ( "name" ) + "']" ) . remove ( ) ;
$ ( "input[name='" + $ ( item ) . attr ( "name" ) + "']" ) . remove ( ) ;
$ ( item ) . select2 ( {
$ ( item ) . select2 ( {
@ -69,7 +69,7 @@ jQuery(document).ready(function($) {
$ ( "#timeline_options_planning_element_responsibles" ) ,
$ ( "#timeline_options_planning_element_responsibles" ) ,
$ ( "#timeline_options_planning_element_assignee" ) ,
$ ( "#timeline_options_planning_element_assignee" ) ,
$ ( "#timeline_options_grouping_two_selection" )
$ ( "#timeline_options_grouping_two_selection" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
$ ( item ) . autocomplete ( { multiple : true ,
$ ( item ) . autocomplete ( { multiple : true ,
ajax : { null _element : { id : - 1 , name : I18n . t ( "js.filter.noneElement" ) } }
ajax : { null _element : { id : - 1 , name : I18n . t ( "js.filter.noneElement" ) } }
} ) ;
} ) ;
@ -79,7 +79,7 @@ jQuery(document).ready(function($) {
$ ( "#timeline_options_planning_element_types" ) ,
$ ( "#timeline_options_planning_element_types" ) ,
$ ( "#timeline_options_planning_element_time_types" ) ,
$ ( "#timeline_options_planning_element_time_types" ) ,
$ ( "#timeline_options_planning_element_status" )
$ ( "#timeline_options_planning_element_status" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
$ ( item ) . autocomplete ( {
$ ( item ) . autocomplete ( {
multiple : true
multiple : true
} ) ;
} ) ;
@ -94,7 +94,7 @@ jQuery(document).ready(function($) {
[
[
$ ( "#reporting_reporting_to_project_id" ) ,
$ ( "#reporting_reporting_to_project_id" ) ,
$ ( "#project_association_select_project_b_id" )
$ ( "#project_association_select_project_b_id" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
// Stuff borrowed from Core application.js Project Jump Box
// Stuff borrowed from Core application.js Project Jump Box
$ ( item ) . autocomplete ( {
$ ( item ) . autocomplete ( {
multiple : false ,
multiple : false ,
@ -112,7 +112,7 @@ jQuery(document).ready(function($) {
[
[
$ ( "#timeline_options_grouping_one_selection" )
$ ( "#timeline_options_grouping_one_selection" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
// Stuff borrowed from Core application.js Project Jump Box
// Stuff borrowed from Core application.js Project Jump Box
$ ( item ) . autocomplete ( {
$ ( item ) . autocomplete ( {
multiple : true ,
multiple : true ,
@ -131,7 +131,7 @@ jQuery(document).ready(function($) {
[
[
$ ( "#timeline_options_parents" )
$ ( "#timeline_options_parents" )
] . e ach( function ( item ) {
] . forE ach( function ( item ) {
// Stuff borrowed from Core application.js Project Jump Box
// Stuff borrowed from Core application.js Project Jump Box
$ ( item ) . autocomplete ( {
$ ( item ) . autocomplete ( {
multiple : true ,
multiple : true ,
@ -168,4 +168,3 @@ jQuery(document).ready(function($) {
field . closest ( "fieldset" ) . removeClass ( 'collapsed' ) . children ( "div" ) . show ( ) ;
field . closest ( "fieldset" ) . removeClass ( 'collapsed' ) . children ( "div" ) . show ( ) ;
}
}
} ) ;
} ) ;