API explorer - tweak drush syntax
authorColeman Watts <coleman@civicrm.org>
Tue, 26 Aug 2014 10:01:16 +0000 (11:01 +0100)
committerColeman Watts <coleman@civicrm.org>
Tue, 26 Aug 2014 10:01:16 +0000 (11:01 +0100)
templates/CRM/Admin/Page/APIExplorer.js
templates/CRM/Admin/Page/APIExplorer.tpl

index 028110e954f0d16422b3f4af14717752b9a5ec67..3c101d7ff095448d8944506a407b0a02d6b1b5f7 100644 (file)
       q.php += "  '" + key + "' => " + phpFormat(value) + ",\n";
       q.json += "  \"" + key + '": ' + js;
       q.smarty += ' ' + key + '=' + smartyFormat(js, key);
-      q.drush += key + '=' + value + ' ';
+      q.drush += key + '=' + js + ' ';
     });
     if (i) {
       q.php += ")";
index accf788f016dfd9ae6cbeca6899934a6bfc52a0a..d6c3da8d16ad699bc023d5112e61857b1aa09fcf 100644 (file)
       <tr><td>Php</td><td><pre class="prettyprint linenums" id="api-php" title='php syntax'></pre></td></tr>
       <tr><td>Javascript</td><td><pre class="prettyprint linenums" id="api-json" title='javascript syntax'></pre></td></tr>
       {if $config->userSystem->is_drupal}
-        <tr><td>Drush</td><td><pre class="prettyprint linenums" id="api-drush" title='drush syntax'></pre></td></tr>
+        <tr><td>Drush</td><td><pre class="prettyprint" id="api-drush" title='drush syntax'></pre></td></tr>
       {/if}
     </table>
   </div>