Skip to content

Commit ab57079

Browse files
committed
Included couple missing files
1 parent 0eb0265 commit ab57079

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

BlogEngine/BlogEngine.NET/Custom/Widgets/LinkList/widget.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<description>Editable list of links</description>
55
<authors>BlogEngine.net</authors>
66
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
78
<iconurl></iconurl>
8-
</metadata>
9+
</metadata>

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$scope.editId = {};
66
$scope.editTitle = {};
77
$scope.editZone = {};
8+
$scope.package = {};
89
$scope.IsPrimary = $rootScope.SiteVars.IsPrimary == "True";
910

1011
$scope.load = function () {
@@ -64,6 +65,19 @@
6465
$("#edit-widget").modal().addClass(name);
6566
}
6667

68+
$scope.loadInfoForm = function (id, name, title, zone) {
69+
dataService.getItems('/api/packages/' + id)
70+
.success(function (data) {
71+
angular.copy(data, $scope.package);
72+
//$scope.selectedRating = $scope.package.Rating;
73+
//$scope.removeEmptyReviews();
74+
})
75+
.error(function () {
76+
toastr.error($rootScope.lbl.errorLoadingPackages);
77+
});
78+
$("#modal-info").modal();
79+
}
80+
6781
$scope.closeEditForm = function () {
6882
$("#edit-widget").modal("hide");
6983
}

0 commit comments

Comments
 (0)