Merge pull request #2834 from phil-davis/patch-4

This commit is contained in:
Stephen Beaver 2016-04-04 18:40:09 -04:00
commit 2fdd07e9bb

View File

@ -602,11 +602,11 @@ $ramdisk_msg = gettext('The \"Use Ramdisk\" setting has been changed. This will
<script>
//<![CDATA[
events.push(function() {
// Record the state of the Ue Ramsidk checkbox on page load
// Record the state of the Use Ramdisk checkbox on page load
use_ramdisk = $('#use_mfs_tmpvar').prop('checked');
$('form').submit(function(event) {
// Has the Use ramdisk checkbox changes state?
// Has the Use ramdisk checkbox changed state?
if ($('#use_mfs_tmpvar').prop('checked') != use_ramdisk) {
if (confirm("<?=$ramdisk_msg?>")) {
$('form').append('<input type="hidden" name="doreboot" id="doreboot" value="yes"/>');