Plugin Directory

Changeset 1845141


Ignore:
Timestamp:
03/22/2018 03:25:41 PM (8 years ago)
Author:
playbuzz
Message:

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

Location:
playbuzz
Files:
2 deleted
4 edited

Legend:

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

    r1845104 r1845141  
    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/tags/1.0.8/js/story-creator/pb-story-creator-model.js

    r1845104 r1845141  
    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

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

    r1845127 r1845141  
    44Requires at least: 3.9
    55Tested up to: 4.7.1
    6 Stable tag: 1.0.11
     6Stable tag: 1.0.8
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    113113== Changelog ==
    114114
    115 = 1.0.11 (2018-03-19) =
     115= 1.0.8 (2018-03-19) =
    116116* Bug fix - save draft didn't work without refreshing
    117117
Note: See TracChangeset for help on using the changeset viewer.