Plugin Directory

Changeset 1845127


Ignore:
Timestamp:
03/22/2018 02:54:38 PM (8 years ago)
Author:
playbuzz
Message:

playbuzz plugin creator rendering after each save because of story creator 409 bug

Location:
playbuzz
Files:
78 added
4 edited

Legend:

Unmodified
Added
Removed
  • playbuzz/trunk/js/story-creator/pb-story-creator-controller.js

    r1845091 r1845127  
    4646
    4747        //_this.model.savePost(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));
     48        _this.model.previewPost(sender.wp).then(_this.postSuccessHandler.bind(_this), _this.errorHandler.bind(_this));
    4949
    5050    });
  • playbuzz/trunk/js/story-creator/pb-story-creator-model.js

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

    r1845121 r1845127  
    44Plugin URI:  https://www.playbuzz.com/
    55Description: Embed customized playful content from Playbuzz.com into your WordPress site
    6 Version:     1.0.10
     6Version:     1.0.11
    77Author:      Playbuzz
    88Author URI:  https://www.playbuzz.com/
  • playbuzz/trunk/readme.txt

    r1845121 r1845127  
    44Requires at least: 3.9
    55Tested up to: 4.7.1
    6 Stable tag: 1.0.10
     6Stable tag: 1.0.11
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    113113== Changelog ==
    114114
    115 = 1.0.10 (2018-03-22) =
    116 * Bug fix - Preview page does not display the Playbuzz item when using the Playbuzz creator
    117 
    118 = 1.0.8 (2018-03-19) =
    119 * Bug fix - Save draft didn't work without refreshing
     115= 1.0.11 (2018-03-19) =
     116* Bug fix - save draft didn't work without refreshing
    120117
    121118= 1.0.7 (2018-03-14) =
Note: See TracChangeset for help on using the changeset viewer.