It seems that IE7 incorrectly returns the button's value as the text between the button tag (<button>Save and Continue Edit</button>) and IE8 (& other tested browsers) correctly returns the text for the value attribute (value="save-continue"). When abcd_12345 reported the bug, I either did not see the browser version or it wasn't present in the post at the time, which is why I asked for the browser version in my post.
The following is a possible fix (it clears the text and sets the text to the value for IE browsers):
<script type="text/javascript">
$(document).ready(function () {
if ($.browser.msie) {
$('.options button').click(function () {
$(this).text('');
var buttonValue = $(this).val();
$(this).text(buttonValue);
})
}
});
</script>
Can those that are experiencing the bug (in IE7 or IE9) add this code to their category edit view: Administration\Views\Category\Edit.cshtml and test to see if it resolves the bug?
Should be able to add this to Administration\Scripts\admin.js to fix all save-continue buttons.
---
Reference:
http://stackoverflow.com/questions/487056/retrieve-button-value-with-jquery
.