Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
892 B

var abp = abp || {};
$(function () {
abp.modals.createMenuItem = function () {
var initModal = function (publicApi, args) {
var $pageId = $('#ViewModel_PageId');
var $url = $('#ViewModel_Url');
var $displayName = $('#ViewModel_DisplayName');
var $menuItemForm = $('#menu-item-form');
$pageId.on('change', function (params) {
$url.prop('disabled', $pageId.val());
if ($pageId.val())
{
if (!$displayName.val()){
$displayName.val($pageId.text().trim());
}
}
})
$menuItemForm.on('submit', function (e) {
$('[href="#url"]').tab('show');
});
};
return {
initModal: initModal
};
};
});