Skip to content

Commit

Permalink
MDL-55717 core: add 'ignoredirty' class to inplace editable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Aug 25, 2016
1 parent 3ca3cc7 commit c0abfda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/amd/build/inplace_editable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/amd/src/inplace_editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/str'
inputelement = $('<input type="text"/>').
attr('id', uniqueId('id_inplacevalue_', 20)).
attr('value', el.attr('data-value')).
attr('aria-describedby', instr.attr('id')),
attr('aria-describedby', instr.attr('id')).
addClass('ignoredirty'),
lbl = $('<label class="accesshide">' + mainelement.attr('data-editlabel') + '</label>').
attr('for', inputelement.attr('id'));
el.html('').append(instr).append(lbl).append(inputelement);
Expand Down

0 comments on commit c0abfda

Please sign in to comment.