mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More url helper fixes (#10241)
* More url helpers graph links ajax search * Fix for non-Laravel pages using the url helper * fix widget settings
This commit is contained in:
@@ -377,7 +377,7 @@ function getLogo($device)
|
||||
*/
|
||||
function getLogoTag($device, $class = null)
|
||||
{
|
||||
$tag = '<img src="' . getLogo($device) . '" title="' . getImageTitle($device) . '"';
|
||||
$tag = '<img src="' . url(getLogo($device)) . '" title="' . getImageTitle($device) . '"';
|
||||
if (isset($class)) {
|
||||
$tag .= " class=\"$class\" ";
|
||||
}
|
||||
|
||||
@@ -611,7 +611,7 @@ if (empty($vars['bare']) || $vars['bare'] == "no") {
|
||||
if( widget_id > 0 && widget_settings != {} ) {
|
||||
$.ajax({
|
||||
type: 'PUT',
|
||||
url: '<?php echo url('/ajax/form/widget-settings/'); ?>' + widget_id,
|
||||
url: '<?php echo url('/ajax/form/widget-settings/'); ?>/' + widget_id,
|
||||
data: {settings: widget_settings},
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
|
||||
Reference in New Issue
Block a user