-
Improvement
-
Resolution: Fixed
-
Minor
-
1.9
-
None
-
MOODLE_19_STABLE
-
MOODLE_23_STABLE
-
Easy
if i enable ajax (site wide) and i turn course editing mode on
and press the X icon to delete any activity or resource inside the course (on any section)
a JS popup dialog appears with the item's ID which is non-intuitive (especially for teachers)
so...
changing "lib/ajax/section_classes.js" line 817 from :
if (!confirm(main.getString('deletecheck', main.getString(this.is)+" "+this.id))) {
to
if (!confirm(main.getString('deletecheck', main.getString(this.is)+" "+this.getEl().getElementsByTagName('span')[0].textContent))) {
will display the proper text of that specific activity or resource.
when poping up that delete confirmation dialog
using ".textContent" should be cross-browser solution according to "innerText" help tip:
http://www.quirksmode.org/dom/w3c_html.html#t04
- will be (partly) resolved by
-
MDL-31052 update Course AJAX/javascript to YUI3 and replace section_classes.js
-
- Closed
-