Not much more to say... :)
Snippets
With the following little HOOK snippet you can exclude users from receiving notifications about own changes in the subscriptions.module:
With this little snippet you can easily set a trigger on autocomplete field options (suggestions) click: $(document).on('click', 'div.reference-autocomplete', function(e) { // Do what you need to do ;) }); It's not that easy because the
If you're running into the JavaScript alert error message on creating an AJAXified node form: Call to undefined function node_form_validate() ... ... the reason might be that the $form_states array contains wrong information which files to
Sometimes you need a snippet to display the drupal messages (drupal_set_message) created messages after an ajax call as result (for example if a node was created via ajax). The following snippet removes old messages from the site and
Drupal 7 views.module allows to refresh ajaxified views dynamically via a javascript call. Implementation in JavaScript The JavaScript call is simple: jQuery('.view-id-XXX').trigger('RefreshView'); Implementation in PHP
Based on the snippet from Pascal Duez: https://gist.github.com/pascalduez/1888373 (thanks a lot!) I modified a bit, here's a snippet to add a "Cancel" button in Content (Node) create / edit forms. Simply use your own mini module to
Drupal 7 Views (3) provides great functionality. However the optionally provided "Reset" button for exposed filters does not work nice with AJAX. If it is clicked it: Does not fire via AJAX but loads a whole new page Has a problem with the
Dir hat dieser Beitrag Zeit und viele Nerven gespart?
Dann würde ich mich sehr über einen leckeren Kaffee freuen! Oder ein spannendes Tech-Buch aus meiner Wunschliste?