daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest May 16th, 2018 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         $this->widgetSchema['drugs'] = new sfWidgetFormDoctrineJQueryAutocompleter(array(
  2.             'label'     => 'M├ędicament',
  3.             'model'     => 'Drug',
  4.             'method'    => '__toString',
  5.             'url'       => sfContext::getInstance()->getRouting()->generate('drug_autocomplete'),
  6.             'config'    => '{ max: 100 }'
  7.         ),
  8.         array(
  9.             'size'     => 50
  10.         ));
  11.  
  12. // Erreur js retournee:
  13. /*
  14. jQuery("#autocomplete_pillbox_drugs").autocomplete("/frontend_dev.php/drug/autocomplete", jQuery.extend({}, {dataType: "json", parse: function (data) {var parsed = [];for (key in data) {parsed[parsed.length] = {data: [data[key], key], value: data[key], result: data[key]};}return parsed;}}, {max: 100})).result is not a function
  15. [Break On This Error] (29 out of range 18)
  16. jquery.min.js (line 29)
  17. */
RAW Paste Data
Top