Skip to content
Snippets Groups Projects

Prevent AddTerms form from adding duplicates

Merged Dragan Pilipovic requested to merge fix-duplicate-terms-addition into 2.0.x
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -87,6 +87,9 @@ class AddTermsToVocabularyForm extends FormBase {
$form['add'] = [
'#type' => 'submit',
'#value' => $this->t('Add'),
'#attributes' => array(
'onclick' => 'javascript:var s=this;setTimeout(function(){s.value="Saving...";s.disabled=true;},1);',
),
];
return $form;
}
Loading