Skip to content

Commit 64375f2

Browse files
committed
Use prop not attr
1 parent e99fd08 commit 64375f2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

smd_tags.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
* @link http://stefdawson.com/
217217
*
218218
* @todo
219-
* Update for 4.5.x:
219+
* Update for 4.6.x:
220220
* Inputs surrounded with graf()
221221
* Table class alteration and listtable wrapper
222222
* Prefs screen to use inputLabel() and new wrapper div
@@ -1465,7 +1465,7 @@ function smd_tags_manage($message='', $report='') {
14651465
// Update the UI
14661466
smd_parentHandler(nam, typ, tid, par);
14671467
smd_catHandler(cat, typ);
1468-
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").attr("selected", true);
1468+
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").prop("selected", true);
14691469
smd_autofocus();
14701470
smd_cellHandler();
14711471
jQuery("input[name='smd_tags_type']").each(function () {
@@ -1552,7 +1552,7 @@ function () {
15521552
jQuery("input[name='smd_tag_id']").val(tid);
15531553
jQuery("input[name='smd_tags_newtitle']").val(ttl);
15541554
jQuery("textarea[name='smd_tags_description']").val(dsc);
1555-
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").attr("selected", true);
1555+
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").prop("selected", true);
15561556
smd_parentHandler(nam, typ, tid, par);
15571557
jQuery(".smd_tags_showlist ${sel}").removeClass('smd_current');
15581558
jQuery(this).addClass('smd_current');
@@ -1568,9 +1568,9 @@ function smd_parentHandler(nam, typ, tid, par) {
15681568
function(data) {
15691569
jQuery(".smd_tags_showpars").html(data);
15701570
if (par == "root" || par == "") {
1571-
jQuery(".smd_tags_showpars select option:first").attr("selected", true);
1571+
jQuery(".smd_tags_showpars select option:first").prop("selected", true);
15721572
} else {
1573-
jQuery(".smd_tags_showpars select option[value='"+par+"']").attr("selected", true);
1573+
jQuery(".smd_tags_showpars select option[value='"+par+"']").prop("selected", true);
15741574
}
15751575
}
15761576
);
@@ -1583,9 +1583,9 @@ function smd_catHandler(cat, typ) {
15831583
function(data) {
15841584
jQuery(".smd_tags_linkcat").html(data);
15851585
if (cat == "root" || cat == "") {
1586-
jQuery(".smd_tags_linkcat select option:first").attr("selected", true);
1586+
jQuery(".smd_tags_linkcat select option:first").prop("selected", true);
15871587
} else {
1588-
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").attr("selected", true);
1588+
jQuery(".smd_tags_linkcat select option[value='"+cat+"']").prop("selected", true);
15891589
}
15901590
jQuery(".smd_tags_linkcat").fadeTo("normal", 1);
15911591
}

0 commit comments

Comments
 (0)