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
| {% extends 'form_div_layout.html.twig' %} | |
| {% block form_row -%} | |
| <div class="row{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}"> | |
| <div class="input-field col s12"> | |
| {{- form_widget(form) -}} | |
| {{- form_label(form) -}} | |
| {{- form_errors(form) -}} | |
| </div> | |
| </div> |
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
| <?php | |
| /** | |
| * @param string $domain Pass $_SERVER['SERVER_NAME'] here | |
| * @param bool $debug | |
| * | |
| * @debug bool $debug | |
| * @return string | |
| */ | |
| function get_domain($domain, $debug = false) | |
| { |
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
| /* | |
| For some reason, the change() event only fires when the input field loses focus. | |
| Binding to other options ('change keypress paste focus textInput input') will | |
| fire the event several times, which is bad. The below code works even when | |
| content is pasted into the text field, and only fires once as expected. | |
| */ | |
| $('#search-form .term').bind('input', function(){ | |
| console.log('this actually works'); | |
| }); |
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
| // Unserialize (to) form plugin - by Christopher Thielen | |
| // adapted and desuckified (a little) by Paul Irish | |
| // takes a GET-serialized string, e.g. first=5&second=3&a=b and sets input tags (e.g. input name="first") to their values (e.g. 5) | |
| (function($) { | |
| $.fn.unserializeForm = function(values) { |