Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am creating a dialog and I'm using the empty recycle bin dialog built into Umbraco as an example (code shown below, with some code removed for brevity): https://github.com/umbraco/Umbraco-CMS/blob/7c4a189aa3cf583954defd9c43a3e55e325f2c3f/src/Umbraco.Web.UI.Client/src/views/content/content.emptyrecyclebin.controller.js
function ContentEmptyRecycleBinController($scope, navigationService) { $scope.performDelete = function() { navigationService.hideMenu(); }; $scope.cancel = function() { navigationService.hideDialog(); }; }
In that code, it calls navigationService.hideDialog when you click cancel, but it calls navigationService.hideMenu when you click OK. What's the difference between those two functions? The end result appears to be the same (i.e., the dialog closes).
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Difference Between hideMenu/hideDialog (in navigationService)?
I am creating a dialog and I'm using the empty recycle bin dialog built into Umbraco as an example (code shown below, with some code removed for brevity): https://github.com/umbraco/Umbraco-CMS/blob/7c4a189aa3cf583954defd9c43a3e55e325f2c3f/src/Umbraco.Web.UI.Client/src/views/content/content.emptyrecyclebin.controller.js
In that code, it calls navigationService.hideDialog when you click cancel, but it calls navigationService.hideMenu when you click OK. What's the difference between those two functions? The end result appears to be the same (i.e., the dialog closes).
is working on a reply...