From: Marcin Haba Date: Sun, 4 Aug 2019 08:50:27 +0000 (+0200) Subject: baculum: Fix scrolling to new runscript subresource on add new runscript action X-Git-Tag: Release-9.6.0~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abaeb6724c084f1f9891553ee17c03dacf0907ee;p=thirdparty%2Fbacula.git baculum: Fix scrolling to new runscript subresource on add new runscript action --- diff --git a/gui/baculum/protected/Web/Portlets/JobRunscriptRenderer.php b/gui/baculum/protected/Web/Portlets/JobRunscriptRenderer.php index 7f972099ad..c0727a5f72 100644 --- a/gui/baculum/protected/Web/Portlets/JobRunscriptRenderer.php +++ b/gui/baculum/protected/Web/Portlets/JobRunscriptRenderer.php @@ -34,7 +34,7 @@ class JobRunscriptRenderer extends DirectiveRenderer { public function render($writer) { if (self::$index % 7 === 0) { - $writer->write('

Runscript #' . ((self::$index/7) + 1) . '


'); + $writer->write('

Runscript #' . ((self::$index/7) + 1) . '


'); } self::$index++; diff --git a/gui/baculum/protected/Web/Portlets/NewRunscriptMenu.tpl b/gui/baculum/protected/Web/Portlets/NewRunscriptMenu.tpl index 392fe3c6ce..26b16dad33 100644 --- a/gui/baculum/protected/Web/Portlets/NewRunscriptMenu.tpl +++ b/gui/baculum/protected/Web/Portlets/NewRunscriptMenu.tpl @@ -5,7 +5,7 @@ ID="RunscriptItem" OnCommand="Parent.SourceTemplateControl.newRunscriptDirective" CommandParameter="save" - ClientSide.OnComplete="var el = $('#<%=$this->RunscriptItem->ClientID%>').parents('div').find('h3.options'); BaculaConfig.scroll_to_element(el[el.length-1]);" + ClientSide.OnComplete="var el = $('#<%=$this->RunscriptItem->ClientID%>').parents('div').find('h3.runscript_options'); console.log(el); BaculaConfig.scroll_to_element(el[el.length-1]);" Attributes.onclick="$(this).closest('div.config_new_runscript').hide();" >  Runscript