Plugin Directory

Changeset 1841508


Ignore:
Timestamp:
03/16/2018 04:14:49 PM (8 years ago)
Author:
canvasflow
Message:

Replace alert message with html message

Location:
canvasflow/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • canvasflow/trunk/README.md

    r1840916 r1841508  
    6666
    6767#### Changelog
     68##### 0.12.2
     69* Replace alert message with html message
     70
    6871##### 0.12.1
    6972* Fix bug that deletes the selected issue in settings.
     
    113116
    114117#### Upgrade Notice
     118##### 0.12.2
     119* Replace alert message with html message
     120
    115121##### 0.12.1
    116122* Fix bug that deletes the selected issue in settings.
  • canvasflow/trunk/assets/css/style.css

    r1827857 r1841508  
    101101    font-weight: 600;
    102102}
     103
     104.meta-box-alert {
     105    position: absolute;
     106    bottom:19px;
     107    left:13px;
     108    font-weight:600;
     109    font-size: 14px;
     110    display: none;
     111}
     112
     113.meta-box-alert-success {
     114    display: block;
     115    color: #009932;
     116}
     117
     118.meta-box-alert-error {
     119    display: block;
     120    color: #FF530D;
     121}
  • canvasflow/trunk/canvasflow-plugin.php

    r1840916 r1841508  
    33  Plugin Name: Canvasflow for WordPress
    44  Description: This out-of-the-box connector provides a quick and simple way to push your blog content directly to an existing Canvasflow publication.
    5   Version: 0.12.1
     5  Version: 0.12.2
    66    Developer:  Canvasflow
    77    Developer URI: https://canvasflow.io
  • canvasflow/trunk/includes/views/canvasflow-metabox-view.php

    r1838787 r1841508  
     1
    12<table class="form-table">
    23    <tbody>
     
    3132                    </select>
    3233                    <br>
    33                     <small>
     34                    <!--<small>
    3435                        <em>
    3536                            Target issue
    3637                        </em>
    37                     </small>
     38                    </small>-->
    3839                </td>
    3940            </tr>
     
    6465                    </select>
    6566                    <br>
    66                     <small>
     67                    <!--<small>
    6768                        <em>
    6869                            CF Style
    6970                        </em>
    70                     </small>
     71                    </small>-->
    7172                </td>
    7273            </tr>
    7374            <tr>
    7475                <th scope="row">
    75                     <label for="style_id">Publish state</label>
     76                    <label for="style_id">Status</label>
    7677                </th>
    7778                <td id="cf_state" class="<?php echo $post_state_style?>">
    7879                    <?php echo $post_state_content?>
    7980                </td>
     81                <div id="cf-alert" class="meta-box-alert"></div>
    8082            </tr>
    8183        <?php
     
    112114            $("#cf_state").removeClass(currentClass);
    113115            $("#cf_state").addClass('meta-box-post-state-in-sync');
    114             $("#cf_state").html("In Sync");
    115             alert('Article publish successfully');
     116            $("#cf_state").html("In Sync");           
     117
     118            let alertClass = $('#cf-alert').attr('class');
     119            $("#cf-alert").removeClass(alertClass);
     120            $("#cf-alert").addClass('meta-box-alert meta-box-alert-success');
     121            $("#cf-alert").html("&#10004; Success");
    116122        });
    117123
     
    119125        request.fail(function (jqXHR, textStatus, errorThrown){
    120126            // Log the error to the console
     127            let alertClass = $('#cf-alert').attr('class');
     128            $("#cf-alert").removeClass(alertClass);
     129            $("#cf-alert").addClass('meta-box-alert meta-box-alert-error');
     130            $("#cf-alert").html("&#215; Fail");
    121131            console.error(
    122132                "The following error occurred: "+
  • canvasflow/trunk/readme.txt

    r1840916 r1841508  
    7474
    7575== Changelog ==
     76= 0.12.2 =
     77* Replace alert message with html message
     78
    7679= 0.12.1 =
    7780* Fix bug that deletes the selected issue in settings.
     
    120123
    121124
    122 == Upgrade Notice ==
     125== Upgrade Notice ==3
     126= 0.12.2 =
     127* Replace alert message with html message
     128
    123129= 0.12.1 =
    124130* Fix bug that deletes the selected issue in settings.
Note: See TracChangeset for help on using the changeset viewer.