Improvements to menus and lists.
This commit is contained in:
parent
8d32850b8f
commit
2ec8f4a928
6 changed files with 126 additions and 101 deletions
|
|
@ -3,9 +3,9 @@
|
|||
* and the current value for {{widget_value}}.
|
||||
*/
|
||||
$('#{{widget_id}}').selectize({
|
||||
valueField: 'id',
|
||||
labelField: 'name',
|
||||
searchField: 'name',
|
||||
valueField: '{{key}}',
|
||||
labelField: '{{field}}',
|
||||
searchField: '{{field}}',
|
||||
hideSelected: false,
|
||||
create: false,
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ $('#{{widget_id}}').selectize({
|
|||
console.log('Desperately seeking ' + query);
|
||||
if (query === null || !query.length) return callback();
|
||||
$.ajax({
|
||||
url: '/json/auto/search-strings-electors?name=' + query,
|
||||
url: '/json/auto/search-strings-{{entity}}?{{field}}=' + query,
|
||||
type: 'GET',
|
||||
dataType: 'jsonp',
|
||||
error: function() {
|
||||
|
|
@ -26,4 +26,4 @@ $('#{{widget_id}}').selectize({
|
|||
}
|
||||
});
|
||||
}
|
||||
})[0].selectize.setValue({{widget_value}}, true);
|
||||
})[0].selectize.setValue('{{widget_value}}', true);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
var simplemde = new SimpleMDE({
|
||||
autosave: {
|
||||
enabled: true,
|
||||
uniqueId: "Smeagol-{{page}}",
|
||||
uniqueId: "adl-generated-{{page}}",
|
||||
delay: 1000,
|
||||
},
|
||||
indentWithTabs: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue