inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Dec 20, 2017 12:05:55 GMT -8
I have this code in my global headers changing the options cog into the word "options"
<script type="text/javascript"> $(document).ready(function(){ $('.post-options.button > .status').html('Options'); $('#options-container > .status').html('Options'); }); </script>
Except whenever a post is deleted or page turned, it reverts to the cog. I know it's a simple addition to fix this but I don't know it or know how to add it. Any help?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Dec 20, 2017 12:33:41 GMT -8
$(document).ready(function () { $('.post-options.button > .status').html('Options'); $('#options-container > .status').html('Options'); pb.events.on('afterSearch', arguments.callee); });
I should note that the use of arguments.callee is not allowed in ES5 strict mode so I've been trying to get out of the habit and to do that you need to give your anonymous function a name $(document).ready(function reveal_ourselves_to_the_jedi() { $('.post-options.button > .status').html('Options'); $('#options-container > .status').html('Options'); pb.events.on('afterSearch', reveal_ourselves_to_the_jedi); });
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Dec 29, 2017 6:55:48 GMT -8
Oh that did the trick, thank you so much! Nice chicken, by the way bahahah I love it
|
|