@@ -369,17 +369,17 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
369369 var tr = tableColumns . insertRow ( tableColumns . rows . length ) ;
370370 var radio = $ ( '<input />' )
371371 . attr ( "type" , "radio" )
372- . attr ( "value" , column . name )
372+ . val ( column . name )
373373 . attr ( "name" , "rdf-column-radio" )
374374 . appendTo ( tr . insertCell ( 0 ) )
375375 . bind ( "click" , function ( ) {
376- $ ( "#rdf-constant-value-input" ) . attr ( "disabled" , "disabled" ) ;
376+ $ ( "#rdf-constant-value-input" ) . prop ( "disabled" , "disabled" ) ;
377377 } )
378378 ;
379379
380380 var td = tr . insertCell ( 1 ) ;
381381 if ( column . name == self . _node . columnName ) {
382- radio . attr ( "checked" , "true" ) ;
382+ radio . prop ( "checked" , "true" ) ;
383383 }
384384 $ ( '<span></span>' ) . text ( column . name ) . appendTo ( td ) ;
385385 } ;
@@ -388,13 +388,13 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
388388 var tr = tableColumns . insertRow ( tableColumns . rows . length ) ;
389389 $ ( '<input />' )
390390 . attr ( "type" , "radio" )
391- . attr ( "checked" , checked )
392- . attr ( "value" , "" )
391+ . prop ( "checked" , checked )
392+ . val ( "" )
393393 . attr ( "name" , "rdf-column-radio" )
394394 . attr ( "id" , "rdf-row-index-column-radio" )
395395 . appendTo ( tr . insertCell ( 0 ) )
396396 . bind ( "click" , function ( ) {
397- $ ( "#rdf-constant-value-input" ) . attr ( "disabled" , "disabled" ) ;
397+ $ ( "#rdf-constant-value-input" ) . prop ( "disabled" , "disabled" ) ;
398398 } )
399399 ;
400400
@@ -407,13 +407,13 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
407407 var tr = tableColumns . insertRow ( tableColumns . rows . length ) ;
408408 $ ( '<input />' )
409409 . attr ( "type" , "radio" )
410- . attr ( "checked" , checked )
411- . attr ( "value" , "" )
410+ . prop ( "checked" , checked )
411+ . val ( "" )
412412 . attr ( "name" , "rdf-column-radio" )
413413 . attr ( "id" , "rdf-constant-value-radio" )
414414 . appendTo ( tr . insertCell ( 0 ) )
415415 . bind ( "click" , function ( ) {
416- $ ( "#rdf-constant-value-input" ) . removeAttr ( "disabled" ) ;
416+ $ ( "#rdf-constant-value-input" ) . prop ( "disabled" , false ) ;
417417 } )
418418 ;
419419
@@ -443,39 +443,39 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
443443
444444
445445 var initInputs = function ( ) {
446- elmts . rdf_content_lang_input . attr ( "disabled" , "disabled" ) ;
447- elmts . rdf_content_type_input . attr ( "disabled" , "disabled" ) ;
446+ elmts . rdf_content_lang_input . prop ( "disabled" , "disabled" ) ;
447+ elmts . rdf_content_type_input . prop ( "disabled" , "disabled" ) ;
448448 //setContentOptions();
449449 if ( self . _node . nodeType === 'resource' || self . _node . nodeType === 'cell-as-resource' ) {
450- elmts . rdf_content_uri_radio . attr ( "checked" , true ) ;
450+ elmts . rdf_content_uri_radio . prop ( "checked" , true ) ;
451451 } else if ( self . _node . nodeType === 'cell-as-literal' || self . _node . nodeType === 'literal' ) {
452452 if ( self . _node . lang ) {
453- elmts . rdf_content_lang_radio . attr ( "checked" , true ) ;
454- elmts . rdf_content_lang_input . removeAttr ( "disabled" ) . val ( self . _node . lang ) ;
453+ elmts . rdf_content_lang_radio . prop ( "checked" , true ) ;
454+ elmts . rdf_content_lang_input . prop ( "disabled" , false ) . val ( self . _node . lang ) ;
455455 } else {
456456 if ( self . _node . valueType ) {
457457 if ( self . _node . valueType === 'http://www.w3.org/2001/XMLSchema#int' ) {
458- elmts . rdf_content_int_radio . attr ( "checked" , true ) ;
458+ elmts . rdf_content_int_radio . prop ( "checked" , true ) ;
459459 } else if ( self . _node . valueType === 'http://www.w3.org/2001/XMLSchema#double' ) {
460- elmts . rdf_content_non_int_radio . attr ( "checked" , true ) ;
460+ elmts . rdf_content_non_int_radio . prop ( "checked" , true ) ;
461461 } else if ( self . _node . valueType === 'http://www.w3.org/2001/XMLSchema#date' ) {
462- elmts . rdf_content_date_radio . attr ( "checked" , true ) ;
462+ elmts . rdf_content_date_radio . prop ( "checked" , true ) ;
463463 } else if ( self . _node . valueType === 'http://www.w3.org/2001/XMLSchema#dateTime' ) {
464- elmts . rdf_content_date_time_radio . attr ( "checked" , true ) ;
464+ elmts . rdf_content_date_time_radio . prop ( "checked" , true ) ;
465465 } else if ( self . _node . valueType === 'http://www.w3.org/2001/XMLSchema#boolean' ) {
466- elmts . rdf_content_boolean_radio . attr ( "checked" , true ) ;
466+ elmts . rdf_content_boolean_radio . prop ( "checked" , true ) ;
467467 }
468468 else {
469- elmts . rdf_content_type_radio . attr ( "checked" , true ) ;
470- elmts . rdf_content_type_input . removeAttr ( "disabled" ) . val ( self . _node . valueType ) ;
469+ elmts . rdf_content_type_radio . prop ( "checked" , true ) ;
470+ elmts . rdf_content_type_input . prop ( "disabled" , false ) . val ( self . _node . valueType ) ;
471471 }
472472 } else {
473- elmts . rdf_content_txt_radio . attr ( "checked" , true ) ;
473+ elmts . rdf_content_txt_radio . prop ( "checked" , true ) ;
474474 }
475475 }
476476 } else {
477477 //blank node
478- elmts . rdf_content_blank_radio . attr ( "checked" , true ) ;
478+ elmts . rdf_content_blank_radio . prop ( "checked" , true ) ;
479479 }
480480
481481 //set cell expression
@@ -488,28 +488,28 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
488488
489489 //click events
490490 elmts . rdf_content_uri_radio . bind ( "click" , function ( ) {
491- $ ( 'input.rdf-text-attributes-input' ) . add ( "#rdf-content-type-input" ) . attr ( "disabled" , "disabled" ) ;
491+ $ ( 'input.rdf-text-attributes-input' ) . add ( "#rdf-content-type-input" ) . prop ( "disabled" , "disabled" ) ;
492492 } ) ;
493493
494494 elmts . rdf_content_txt_radio . add ( elmts . rdf_content_int_radio [ 0 ] ) . add ( elmts . rdf_content_non_int_radio [ 0 ] )
495495 . add ( elmts . rdf_content_date_radio [ 0 ] ) . add ( elmts . rdf_content_date_time_radio [ 0 ] ) . add ( elmts . rdf_content_blank_radio [ 0 ] )
496496 . bind ( "click" , function ( ) {
497- $ ( '#rdf-content-lang-input' ) . add ( "#rdf-content-type-input" ) . attr ( "disabled" , "disabled" ) ;
497+ $ ( '#rdf-content-lang-input' ) . add ( "#rdf-content-type-input" ) . prop ( "disabled" , "disabled" ) ;
498498 } ) ;
499499
500500 elmts . rdf_content_lang_radio . bind ( "click" , function ( ) {
501- $ ( '#rdf-content-lang-input' ) . removeAttr ( "disabled" ) ;
501+ $ ( '#rdf-content-lang-input' ) . prop ( "disabled" , false ) ;
502502 } ) ;
503503
504504 elmts . rdf_content_type_radio . bind ( "click" , function ( ) {
505- $ ( '#rdf-content-type-input' ) . removeAttr ( "disabled" ) ;
505+ $ ( '#rdf-content-type-input' ) . prop ( "disabled" , false ) ;
506506 } ) ;
507507
508508 //edit/preview
509509 elmts . rdf_cell_expr_preview . bind ( "click" , function ( e ) {
510510 e . preventDefault ( ) ;
511511 var nodeSubtype = $ ( "input[name='rdf-content-radio']:checked" ) [ 0 ] . value ;
512- if ( $ ( "#rdf-constant-value-radio" ) . attr ( 'checked' ) ) {
512+ if ( $ ( "#rdf-constant-value-radio" ) . prop ( 'checked' ) ) {
513513 //constant node
514514 var val = $ ( '#rdf-constant-value-input' ) . val ( ) ;
515515 if ( nodeSubtype === 'blank' ) {
@@ -546,28 +546,28 @@ RdfSchemaAlignmentDialog.UINode.prototype._showNodeConfigDialog = function(){
546546 *--------------------------------------------------
547547 */
548548 var getResultJSON = function ( ) {
549- var nodeType = $ ( "#rdf-constant-value-radio" ) . attr ( 'checked' ) ?'' :'cell-as-' ;
549+ var nodeType = $ ( "#rdf-constant-value-radio" ) . prop ( 'checked' ) ?'' :'cell-as-' ;
550550 var nodeSubtype = $ ( "input[name='rdf-content-radio']:checked" ) [ 0 ] . value ;
551551 var node = {
552552 nodeType : nodeType + nodeSubtype
553553 } ;
554554 if ( nodeSubtype === "literal" ) {
555555 //get language
556- if ( $ ( '#rdf-content-lang-radio' ) . attr ( 'checked' ) ) {
556+ if ( $ ( '#rdf-content-lang-radio' ) . prop ( 'checked' ) ) {
557557 node . lang = $ ( '#rdf-content-lang-input' ) . val ( ) ;
558558 } else {
559559 //get value type
560- if ( $ ( '#rdf-content-int-radio' ) . attr ( 'checked' ) ) {
560+ if ( $ ( '#rdf-content-int-radio' ) . prop ( 'checked' ) ) {
561561 node . valueType = 'http://www.w3.org/2001/XMLSchema#int' ;
562- } else if ( $ ( '#rdf-content-non-int-radio' ) . attr ( 'checked' ) ) {
562+ } else if ( $ ( '#rdf-content-non-int-radio' ) . prop ( 'checked' ) ) {
563563 node . valueType = 'http://www.w3.org/2001/XMLSchema#double' ;
564- } else if ( $ ( '#rdf-content-date-radio' ) . attr ( 'checked' ) ) {
564+ } else if ( $ ( '#rdf-content-date-radio' ) . prop ( 'checked' ) ) {
565565 node . valueType = 'http://www.w3.org/2001/XMLSchema#date' ;
566- } else if ( $ ( '#rdf-content-date-time-radio' ) . attr ( 'checked' ) ) {
566+ } else if ( $ ( '#rdf-content-date-time-radio' ) . prop ( 'checked' ) ) {
567567 node . valueType = 'http://www.w3.org/2001/XMLSchema#dateTime' ;
568- } else if ( $ ( '#rdf-content-boolean-radio' ) . attr ( 'checked' ) ) {
568+ } else if ( $ ( '#rdf-content-boolean-radio' ) . prop ( 'checked' ) ) {
569569 node . valueType = 'http://www.w3.org/2001/XMLSchema#boolean' ;
570- } else if ( $ ( '#rdf-content-type-radio' ) . attr ( 'checked' ) ) {
570+ } else if ( $ ( '#rdf-content-type-radio' ) . prop ( 'checked' ) ) {
571571 //check custom datatype URI
572572 var val = $ ( '#rdf-content-type-input' ) . val ( ) ;
573573 if ( ! val ) {
0 commit comments