This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.each($(".select2-container"), function (i, n) { | |
| $(n).next().show().fadeTo(0, 0).height("0px").css("left", "auto"); // make the original select visible for validation engine and hidden for us | |
| $(n).prepend($(n).next()); | |
| $(n).delay(500).queue(function () { | |
| $(this).removeClass("validate[required]"); //remove the class name from select2 container(div), so that validation engine dose not validate it | |
| $(this).dequeue(); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static function findEmail($string) | |
| { | |
| $pattern = '/[a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i'; | |
| preg_match_all($pattern, $string, $matches); | |
| return (count($matches[0]) > 0); | |
| } | |
| public static function findUrl($string) | |
| { |
OlderNewer