File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The code is available at [https://github.com/martignoni/moodle-tool_moodlebox](h
12
12
13
13
### Release notes
14
14
15
- * 2017-04-10 , version 1.4.4: Restart and shutdown buttons are now disabled after submit
15
+ * 2017-04-11 , version 1.4.4: Some small bugs and cosmetic fixes
16
16
* 2016-12-06, version 1.4.3: Bug fixed for use with Moodle 3.2
17
17
* 2016-10-08, version 1.4.2: Display warnings when the plugin installation is not complete
18
18
* 2016-09-25, version 1.4.1: MoodleBox Wi-Fi network password cannot be changed to empty
Original file line number Diff line number Diff line change 66
66
$ systemtime = usergetdate (time ())[0 ];
67
67
68
68
$ PAGE ->requires ->js_init_call ('checktime ' , array ($ systemtime ));
69
- $ PAGE ->requires ->js_init_call ('disable_restartshutdown_buttons ' );
70
69
71
70
$ kernelversion = php_uname ('s ' ) . ' ' . php_uname ('r ' ) . ' ' . php_uname ('m ' );
72
71
$ raspbianversion = exec ('lsb_release -ds ' );
Original file line number Diff line number Diff line change @@ -12,17 +12,3 @@ var checktime = function(Y, servertime) {
12
12
}
13
13
return usertime ;
14
14
}
15
-
16
- function disable_restartshutdown_buttons ( ) {
17
- // Submitting the Form disables the restart button.
18
- var form = Y . one ( '#formrestartstop' ) ;
19
- form . on ( 'submit' , function ( ) {
20
- var buttons = form . all ( '.btn' ) ;
21
- if ( form . getAttribute ( 'submitted' ) ) return false ;
22
- buttons . each (
23
- function ( button ) {
24
- button . setAttribute ( 'disabled' , true ) ;
25
- } ) ;
26
- form . setAttribute ( 'submitted' , 'true' )
27
- } ) ;
28
- }
You can’t perform that action at this time.
0 commit comments