Fix some dashbiard issues
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"dist/css/all.css": "dist/css/all-0a0328c0cc.css",
|
"dist/css/all.css": "dist/css/all-0a0328c0cc.css",
|
||||||
"dist/js/all.js": "dist/js/all-47747ca921.js"
|
"dist/js/all.js": "dist/js/all-e705b7b737.js"
|
||||||
}
|
}
|
||||||
@@ -39,11 +39,9 @@ $(function() {
|
|||||||
// Mock the DELETE form requests.
|
// Mock the DELETE form requests.
|
||||||
$('[data-method]').not(".disabled").append(function() {
|
$('[data-method]').not(".disabled").append(function() {
|
||||||
var methodForm = "\n";
|
var methodForm = "\n";
|
||||||
methodForm += "<form action='" + $(this).attr('href') + "' method='POST' style='display:none'>\n";
|
methodForm += "<form action='" + $(this).attr('href') + "' method='POST' style='display:none'>\n";
|
||||||
methodForm += " <input type='hidden' name='_method' value='" + $(this).attr('data-method') + "'>\n";
|
methodForm += "<input type='hidden' name='_method' value='" + $(this).attr('data-method') + "'>\n";
|
||||||
if ($(this).attr('data-token')) {
|
methodForm += "<input type='hidden' name='_token' value='" + $('meta[name=token]').attr('content') + "'>\n";
|
||||||
methodForm += "<input type='hidden' name='_token' value='" + $(this).attr('data-token') + "'>\n";
|
|
||||||
}
|
|
||||||
methodForm += "</form>\n";
|
methodForm += "</form>\n";
|
||||||
return methodForm;
|
return methodForm;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user