Plugin Directory

Changeset 1845080


Ignore:
Timestamp:
03/22/2018 01:52:55 PM (8 years ago)
Author:
playbuzz
Message:

fix - preview button will display the playbuzz item

Location:
playbuzz
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • playbuzz/tags/1.0.9/readme.txt

    r1844868 r1845080  
    117117
    118118= 1.0.8 (2018-03-19) =
    119 * Bug fix - Save draft didn't work without refreshing
     119* Bug fix - save draft didn't work without refreshing
    120120
    121121= 1.0.7 (2018-03-14) =
  • playbuzz/trunk/js/story-creator/pb-story-creator-controller.js

    r1845056 r1845080  
    4646
    4747        //_this.model.savePost(sender.wp).then(_this.postSuccessHandler.bind(_this), _this.errorHandler.bind(_this));
    48         _this.model.previewPost(sender.wp).then(_this.postSuccessHandler.bind(_this), _this.errorHandler.bind(_this));
     48        _this.model.previewPost(sender.wp).then(_this.refreshCreator.bind(_this), _this.errorHandler.bind(_this));
    4949
    5050    });
  • playbuzz/trunk/js/story-creator/pb-story-creator-model.js

    r1845056 r1845080  
    4545 * 3. perform given action (save/ publish) via wordpress
    4646 * @param action
    47  * @param actionOnWP
     47 * @param wpOriginalElement
    4848 * @returns {Promise}
    4949 */
    50 PbStoryCreatorModel.prototype.performAction = function (action, actionOnWP, paramsToAction) {
     50PbStoryCreatorModel.prototype.performAction = function (action, wpOriginalElement, paramsToAction) {
    5151
    5252    var _this = this;
     
    7171        .then(function (res) {
    7272
    73             actionOnWP.click();
     73            wpOriginalElement.click();
    7474            deferred.resolve(res);
    7575        })
     
    107107PbStoryCreatorModel.prototype.savePost = function (saveButton) {
    108108
    109     return this.performAction(this.pbCreator.save, saveButton);
     109    return this.performAction(this.pbCreator.publish, saveButton);
    110110
    111111};
     
    120120    var redirect = true;
    121121
    122     return this.performAction(this.pbCreator.save , previewButton, redirect);
     122    return this.performAction(this.pbCreator.publish , previewButton, redirect);
    123123
    124124};
  • playbuzz/trunk/playbuzz.php

    r1845056 r1845080  
    44Plugin URI:  https://www.playbuzz.com/
    55Description: Embed customized playful content from Playbuzz.com into your WordPress site
    6 Version:     1.0.8
     6Version:     1.0.9
    77Author:      Playbuzz
    88Author URI:  https://www.playbuzz.com/
  • playbuzz/trunk/readme.txt

    r1845056 r1845080  
    44Requires at least: 3.9
    55Tested up to: 4.7.1
    6 Stable tag: 1.0.8
     6Stable tag: 1.0.9
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    112112
    113113== Changelog ==
     114
     115= 1.0.9 (2018-03-22) =
     116* Bug fix - Preview page does not display the Playbuzz item when using the Playbuzz creator
    114117
    115118= 1.0.8 (2018-03-19) =
Note: See TracChangeset for help on using the changeset viewer.