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:
Tony Murray
2019-05-21 08:50:45 -05:00
committed by GitHub
parent 2dc05ee501
commit c9748b166e
5 changed files with 12 additions and 11 deletions

View File

@@ -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\" ";
}

View File

@@ -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) {