@@ -105,11 +105,11 @@ $(document).ready( function() {
105
105
var checkedCount = $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name="' + fieldName + '[]"]:checked' ) . length ;
106
106
var totalCount = $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name="' + fieldName + '[]"]' ) . length ;
107
107
var allSelected = checkedCount == totalCount ;
108
- $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name=' + fieldName + '_all]' ) . attr ( 'checked' , allSelected ) ;
108
+ $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name=' + fieldName + '_all]' ) . prop ( 'checked' , allSelected ) ;
109
109
} ) ;
110
110
$ ( ':checkbox.check_all' ) . click ( function ( ) {
111
111
var baseFieldName = $ ( this ) . attr ( 'name' ) . replace ( / _ a l l $ / , '' ) ;
112
- $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name="' + baseFieldName + '[]"]' ) . attr ( 'checked' , $ ( this ) . is ( ':checked' ) ) ;
112
+ $ ( this ) . closest ( 'form' ) . find ( ':checkbox[name="' + baseFieldName + '[]"]' ) . prop ( 'checked' , $ ( this ) . is ( ':checked' ) ) ;
113
113
} ) ;
114
114
}
115
115
@@ -207,30 +207,30 @@ $(document).ready( function() {
207
207
208
208
$ ( 'input[type=checkbox]#use_date_filters' ) . live ( 'click' , function ( ) {
209
209
if ( ! $ ( this ) . is ( ':checked' ) ) {
210
- $ ( 'div.filter-box select[name=start_year]' ) . attr ( 'disabled' , 'disabled' ) ;
211
- $ ( 'div.filter-box select[name=start_month]' ) . attr ( 'disabled' , 'disabled' ) ;
212
- $ ( 'div.filter-box select[name=start_day]' ) . attr ( 'disabled' , 'disabled' ) ;
213
- $ ( 'div.filter-box select[name=end_year]' ) . attr ( 'disabled' , 'disabled' ) ;
214
- $ ( 'div.filter-box select[name=end_month]' ) . attr ( 'disabled' , 'disabled' ) ;
215
- $ ( 'div.filter-box select[name=end_day]' ) . attr ( 'disabled' , 'disabled' ) ;
210
+ $ ( 'div.filter-box select[name=start_year]' ) . prop ( 'disabled' , true ) ;
211
+ $ ( 'div.filter-box select[name=start_month]' ) . prop ( 'disabled' , true ) ;
212
+ $ ( 'div.filter-box select[name=start_day]' ) . prop ( 'disabled' , true ) ;
213
+ $ ( 'div.filter-box select[name=end_year]' ) . prop ( 'disabled' , true ) ;
214
+ $ ( 'div.filter-box select[name=end_month]' ) . prop ( 'disabled' , true ) ;
215
+ $ ( 'div.filter-box select[name=end_day]' ) . prop ( 'disabled' , true ) ;
216
216
} else {
217
- $ ( 'div.filter-box select[name=start_year]' ) . removeAttr ( 'disabled' ) ;
218
- $ ( 'div.filter-box select[name=start_month]' ) . removeAttr ( 'disabled' ) ;
219
- $ ( 'div.filter-box select[name=start_day]' ) . removeAttr ( 'disabled' ) ;
220
- $ ( 'div.filter-box select[name=end_year]' ) . removeAttr ( 'disabled' ) ;
221
- $ ( 'div.filter-box select[name=end_month]' ) . removeAttr ( 'disabled' ) ;
222
- $ ( 'div.filter-box select[name=end_day]' ) . removeAttr ( 'disabled' ) ;
217
+ $ ( 'div.filter-box select[name=start_year]' ) . prop ( 'disabled' , false ) ;
218
+ $ ( 'div.filter-box select[name=start_month]' ) . prop ( 'disabled' , false ) ;
219
+ $ ( 'div.filter-box select[name=start_day]' ) . prop ( 'disabled' , false ) ;
220
+ $ ( 'div.filter-box select[name=end_year]' ) . prop ( 'disabled' , false ) ;
221
+ $ ( 'div.filter-box select[name=end_month]' ) . prop ( 'disabled' , false ) ;
222
+ $ ( 'div.filter-box select[name=end_day]' ) . prop ( 'disabled' , false ) ;
223
223
}
224
224
} ) ;
225
225
226
226
/* For Period.php bundled with the core MantisGraph plugin */
227
227
$ ( '#dates > input[type=image].datetime' ) . hide ( ) ;
228
228
$ ( '#period_menu > select#interval' ) . change ( function ( ) {
229
229
if ( $ ( this ) . val ( ) == 10 ) {
230
- $ ( '#dates > input[type=text].datetime' ) . removeAttr ( 'disabled' ) ;
230
+ $ ( '#dates > input[type=text].datetime' ) . prop ( 'disabled' , false ) ;
231
231
$ ( '#dates > input[type=image].datetime' ) . show ( ) ;
232
232
} else {
233
- $ ( '#dates > input[type=text].datetime' ) . attr ( 'disabled' , 'disabled' ) ;
233
+ $ ( '#dates > input[type=text].datetime' ) . prop ( 'disabled' , true ) ;
234
234
$ ( '#dates > input[type=image].datetime' ) . hide ( ) ;
235
235
}
236
236
} ) ;
0 commit comments