Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

birdnose on "[Plugin: Wordpress Sticky Notes] Created notes are initially invisible"

$
0
0

Clicking the + button to create a new note initially appears to do nothing, but toggling the hide/show button will reveal the note. Saved notes also do not appear until the visibility is toggled.

The following diff is my quick fix. It's probably not the correct fix, but does appear to create correct behavior.

*** wpst_script.js.orig Wed Nov 12 23:36:32 2014
--- wpst_script.js      Wed Nov 12 23:34:14 2014
***************
*** 136,141 ****
--- 136,142 ----
                                css: { top: this.menuContainer.offset().top + "px" }
                        }).appendTo('body');
                this.allStickers.push( this.currentSticker );
+               this.currentSticker.show();
                return this.currentSticker;
        }

***************
*** 221,226 ****
--- 222,228 ----
                        sticker.find(".resize").css({ width: sticker_properties.width+"px", height: sticker_properties.height+"px" });
                        this.bindEvents( sticker );
                        this.allStickers.push( sticker );
+                       sticker.show();
                }
        }

https://wordpress.org/plugins/wp-sticker-notes/


Viewing all articles
Browse latest Browse all 26892

Trending Articles