File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
administrator/components/com_newsfeeds/models/fields/modal Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,12 @@ protected function getInput()
6262
6363 $ script [] = ' jQuery("#modalNewsfeed").modal("hide"); ' ;
6464
65+ if ($ this ->required )
66+ {
67+ $ script [] = ' document.formvalidator.validate(document.getElementById(" ' . $ this ->id . '_id")); ' ;
68+ $ script [] = ' document.formvalidator.validate(document.getElementById(" ' . $ this ->id . '_name")); ' ;
69+ }
70+
6571 $ script [] = ' } ' ;
6672
6773 // Clear button script
@@ -182,4 +188,16 @@ protected function getInput()
182188
183189 return implode ("\n" , $ html );
184190 }
191+
192+ /**
193+ * Method to get the field label markup.
194+ *
195+ * @return string The field label markup.
196+ *
197+ * @since 3.4
198+ */
199+ protected function getLabel ()
200+ {
201+ return str_replace ($ this ->id , $ this ->id . '_id ' , parent ::getLabel ());
202+ }
185203}
You can’t perform that action at this time.
0 commit comments