Changeset 949f66d for src/webapp


Ignore:
Timestamp:
Aug 24, 2017, 8:19:01 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
944372e
Parents:
50a7bfa (diff), 563c04b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into debian/jessie

Location:
src/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/webclient/css/GnuBoat.css

    r50a7bfa r949f66d  
    115115}
    116116
    117 #shutdownMessage {
     117#message .error {
    118118        font-weight: bold;
    119119        color: #8C1C00;
     120}
     121
     122#message .info {
     123        font-weight: bold;
     124        color: #45A545;
    120125}
    121126
  • src/webapp/webclient/index.html

    r50a7bfa r949f66d  
    129129                                                <div class="pure-u-1 pure-u-md-1-2 pure-u-lg-1-2">
    130130                                                        <div id="shutdown" class="l-box">
    131                                                                 <a name="shutdown"></a>
    132                                                                 <p id="shutdownMessage"/>
     131                                                                <a name="messages"></a>
     132                                                                <p id="message"/>
    133133<!--                                                            <button type="button" class="pure-button shutdown-button" id="shutdownButton">SHUTDOWN</button> -->
    134134                                                        </div>
  • src/webapp/webclient/js/GnuBoat.js

    r50a7bfa r949f66d  
    4444{
    4545        $("#message").empty();
    46         $(shutdownHint).appendTo("#message");
     46        $(text).appendTo("#message");
    4747        location.hash = "#messages";
    4848}
    … …  
    115115                var shutdownDate = Date.parse(shutdownTime);
    116116                var currentDate = new Date();
    117                 var shutdownHint = "Shutting down in "+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString();
     117                var shutdownHint = '<span class="info">Shutting down in '+ Math.floor((shutdownDate - currentDate)/1000) +"s at "+ shutdownTime.toLocaleString() +"</span>";
    118118                if(shutdownTime == -1){
    119                         shutdownHint = "Failed to initiate shutdown: "+ data["errormessage"];
     119                        shutdownHint = '<span class="error">Failed to initiate shutdown: '+ data["errormessage"] +"</span>";
    120120                }
    121121                GnuBoat.displayMessage(shutdownHint);
  • src/webapp/webservice/inc/GnuBoat/ServiceShutdown.php

    r50a7bfa r949f66d  
    3636                if($handle === false){
    3737                        $message = "Could not create file (". $config->shutdownRequestFile() .") to indicate shutdown to the daemon.";
    38                         if($debug > 0)
    39                                 echo $message;
    4038                        error_log($message);
    4139                        $result["shutdownstart"] = -1;
Note: See TracChangeset for help on using the changeset viewer.