Skip to content
Permalink
Browse files

MDL-62500 tag: Update checkbox label when updating tag

  • Loading branch information
andrewnicols committed May 20, 2018
1 parent 22744b7 commit 39e14b2325c4a9c2011cee640465032b0b4d519b
Showing with 6 additions and 1 deletion.
  1. +1 −1 lib/amd/build/tag.min.js
  2. +5 −0 lib/amd/src/tag.js

Some generated files are not rendered by default. Learn more.

@@ -67,6 +67,11 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'

// Set cell 'time modified' to 'now' when any of the element is updated in this row.
$('body').on('updated', '[data-inplaceeditable]', function(e) {
str.get_string('selecttag', 'core_tag', e.ajaxreturn.value)
.then(function(s) {
return $('label[for="tagselect' + e.ajaxreturn.itemid + '"]').html(s);
})
.fail(notification.exception);
str.get_string('now').done(function(s) {
$(e.target).closest('tr').find('td.col-timemodified').html(s);
});

0 comments on commit 39e14b2

Please sign in to comment.
You can’t perform that action at this time.