MDL-47027 gradereport_grader: Removed floating save changes button

This issue is a part of the MDL-46658 Task.
This issue is a part of the MDL-25544 Epic.
This commit is contained in:
Frederic Massart
2014-10-03 15:44:07 +08:00
committed by Andrew Nicols
parent d688ee6d33
commit 8a9335075e
5 changed files with 7 additions and 41 deletions
@@ -796,18 +796,7 @@ FloatingHeaders.prototype = {
footerWidth += parseInt(node.get(OFFSETWIDTH), 10);
}, this);
// Attach 'Update' button.
var updateButton = Y.one('#gradersubmit');
if (updateButton) {
// TODO decide what to do with classes here to make them compatible with the base themes.
var button = Y.Node.create('<button class="btn btn-sm btn-default">' + updateButton.getAttribute('value') + '</button>');
button.on('click', function() {
updateButton.simulate('click');
});
floatingGraderFooter.one('div').append(button);
}
// Position the row
// Position the row.
floatingGraderFooter.setStyles({
position: 'absolute',
left: coordinates[0] + 'px',
@@ -1173,4 +1162,4 @@ Tooltip.prototype = {
Y.Base.mix(Y.M.gradereport_grader.ReportTable, [Tooltip]);
}, '@VERSION@', {"requires": ["base", "node", "event", "handlebars", "overlay", "event-hover", "node-event-simulate"]});
}, '@VERSION@', {"requires": ["base", "node", "event", "handlebars", "overlay", "event-hover"]});
File diff suppressed because one or more lines are too long
@@ -795,18 +795,7 @@ FloatingHeaders.prototype = {
footerWidth += parseInt(node.get(OFFSETWIDTH), 10);
}, this);
// Attach 'Update' button.
var updateButton = Y.one('#gradersubmit');
if (updateButton) {
// TODO decide what to do with classes here to make them compatible with the base themes.
var button = Y.Node.create('<button class="btn btn-sm btn-default">' + updateButton.getAttribute('value') + '</button>');
button.on('click', function() {
updateButton.simulate('click');
});
floatingGraderFooter.one('div').append(button);
}
// Position the row
// Position the row.
floatingGraderFooter.setStyles({
position: 'absolute',
left: coordinates[0] + 'px',
@@ -1172,4 +1161,4 @@ Tooltip.prototype = {
Y.Base.mix(Y.M.gradereport_grader.ReportTable, [Tooltip]);
}, '@VERSION@', {"requires": ["base", "node", "event", "handlebars", "overlay", "event-hover", "node-event-simulate"]});
}, '@VERSION@', {"requires": ["base", "node", "event", "handlebars", "overlay", "event-hover"]});
@@ -546,18 +546,7 @@ FloatingHeaders.prototype = {
footerWidth += parseInt(node.get(OFFSETWIDTH), 10);
}, this);
// Attach 'Update' button.
var updateButton = Y.one('#gradersubmit');
if (updateButton) {
// TODO decide what to do with classes here to make them compatible with the base themes.
var button = Y.Node.create('<button class="btn btn-sm btn-default">' + updateButton.getAttribute('value') + '</button>');
button.on('click', function() {
updateButton.simulate('click');
});
floatingGraderFooter.one('div').append(button);
}
// Position the row
// Position the row.
floatingGraderFooter.setStyles({
position: 'absolute',
left: coordinates[0] + 'px',
@@ -6,8 +6,7 @@
"event",
"handlebars",
"overlay",
"event-hover",
"node-event-simulate"
"event-hover"
]
}
}