Skip to content

Commit b62e88e

Browse files
committed
Update widgetController.js
Realised by fix only sorted the editor, not the actual display of the widget as it was writing the ID twice into the DB row
1 parent 7fadea4 commit b62e88e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
$scope.loadEditForm = function (id, name, title, zone) {
4444
var sharedSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/common.cshtml";
45-
var customSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/" + name + "/edit.cshtml?id="+ id;
45+
var customSrc = SiteVars.RelativeWebRoot + "Custom/Widgets/" + name + "/edit.cshtml";
4646

4747

4848
$scope.editId = id;
@@ -55,7 +55,7 @@
5555

5656
$.ajax({
5757
type: 'HEAD',
58-
url: customSrc,
58+
url: customSrc + "?id=" + id,
5959
async: false,
6060
success: function () {
6161
$scope.editSrc = customSrc + "?id=" + id + "&zone=" + zone;

0 commit comments

Comments
 (0)