File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
administrator/components/com_admin/views/profile/tmpl Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1212// Include the component HTML helpers.
1313JHtml::addIncludePath (JPATH_COMPONENT . '/helpers/html ' );
1414
15- JHtml::_ ('behavior.formvalidation ' );
15+ JHtml::_ ('behavior.formvalidator ' );
1616
17+ JFactory::getDocument ()->addScriptDeclaration ('
18+ jQuery(document).ready(function() {
19+ Joomla.submitbutton = function(task)
20+ {
21+ if (task == "profile.cancel" || document.formvalidator.isValid(document.id("profile-form")))
22+ {
23+ Joomla.submitform(task, document.getElementById("profile-form"));
24+ }
25+ }
26+ }); ' );
1727// Load chosen.css
1828JHtml::_ ('formbehavior.chosen ' , 'select ' );
1929
2030// Get the form fieldsets.
2131$ fieldsets = $ this ->form ->getFieldsets ();
2232?>
2333
24- <script type="text/javascript">
25- Joomla.submitbutton = function(task)
26- {
27- if (task == 'profile.cancel' || document.formvalidator.isValid(document.id('profile-form')))
28- {
29- Joomla.submitform(task, document.getElementById('profile-form'));
30- }
31- }
32- </script>
33-
3434<form action="<?php echo JRoute::_ ('index.php?option=com_admin&view=profile&layout=edit&id= ' . $ this ->item ->id ); ?> " method="post" name="adminForm" id="profile-form" class="form-validate form-horizontal" enctype="multipart/form-data">
3535 <?php echo JHtml::_ ('bootstrap.startTabSet ' , 'myTab ' , array ('active ' => 'account ' )); ?>
3636
You can’t perform that action at this time.
0 commit comments