<commit_before>/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com
 * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
 */

jQuery(window).ready(
  function()
  {
   jQuery("a").each(
    function()
    {
      if(this.href.indexOf('popup=1') > -1)
      {
        //skip self hrefs with popup(basically it's <a href="#"> alike tags)
        if(this.href.indexOf('#') > -1 && this.href.indexOf(window.location.href) > -1)
          return;

        jQuery(this).bind("click", function()
                       {
                         new Limb.Window(this.href);
                         return false;
                       });
      }
    }
   );
  }<commit_msg>[svn r5948] -- it's possible to forbid popupping by setting this.popup = false attribute<commit_after>/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com
 * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
 */

jQuery(window).ready(
  function()
  {
   jQuery("a").each(
    function()
    {
      if(this.href.indexOf('popup=1') > -1)
      {
        //skip self hrefs with popup(basically it's <a href="#"> alike tags)
        if(this.href.indexOf('#') > -1 && this.href.indexOf(window.location.href) > -1)
          return;

        jQuery(this).bind("click",
         function()
         {
           //we can specify explicitly not to popup, this is useful for onclick handlers in <a> tag
           if(this.popup === false)
             return false;
           new Limb.Window(this.href);
           return false;
         });
      }
    }
   );
  }
{'fraction_non_alphanumeric': 0.1559741024131842, 'fraction_numerical': 0.0164802825191289, 'mean_word_length': 1.8960817717206133, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3294590', 'n_tokens_mistral': 559, 'n_tokens_neox': 520, 'n_words': 113}