$.suuperbox() Replace content

Issue #44 resolved
Anonymous created an issue

im getting superbox from anoher page and it needs $.suuperbox() call. if main page has this one, after my call , it makes 2 and all contents coming 2. i want that: if page has one $.superbox() , dont need second one. i wanna control it. how ??

Comments (2)

  1. shuckry

    thank you pierre.its working. ive added below codes to the 72line and it worked. Prevent multiple inits if ($this.data("superbox_init")) { return; } $this.data("superbox_init", true);

  2. Log in to comment