Thanx! it's working now!
_$modal.find('.modal-body').keydown(function (e) {
if (e.which === 13) {
if ((e.target.tagName.toLocaleLowerCase() === "textarea") || ($(e.target).arrt('class') === 'note-editable')) {
e.stopPropagation();
} else {
e.preventDefault();
_saveModal();
}
}
});
I had same trouble publishing to Azure. Make sure you have minified all your js files with gulp --prod
[https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=10484])
Hi, I am on ASP.NET CORE MVC & JQuery v5.0.4, and i have added a Modal with a summernote editor: [http://keenthemes.com/metronic/preview/?page=components/forms/widgets/summernote&demo=default])
In the Metronics demo if you press enter the editor goes to next line, in my modal if you press enter the data is saved and modal closes. How to prevent enter key to do this.
Here is my _AddEmployeeNoteModal.js
(function () {
app.modals.AddEmployeeNoteModal = function () {
var _modalManager;
var _employeeService = abp.services.app.employee;
var _$form = null;
this.init = function(modalManager) {
$('#summernote').summernote({
height: 150,
dialogsInBody: true
});
_modalManager = modalManager;
_$form = _modalManager.getModal().find('form[name=EmployeeNoteForm]');
};
this.save = function () {
var employeeNote = _$form.serializeFormToObject();
var markupContent = $('#summernote').summernote('code');
employeeNote.content = markupContent;
_modalManager.setBusy(true);
_employeeService.addEmployeeNote(
employeeNote
).done(function () {
_modalManager.close();
abp.event.trigger('app.addEmployeeNoteModalSaved');
}).always(function () {
_modalManager.setBusy(false);
});
};
};
})(jQuery);
Thanx! It's working
Thanks ismcagdas, So to make sure to add for instance highcharts I do the following steps: npm install highchart then add to bundle.config.js
"node_modules/highcharts/highcharts.js": "highcharts",
"node_modules/highcharts/css/highcharts.css": "highcharts",
Then run Gulp --prod when publishing to production Is this correct?
Hi, i have added Highcharts library but when running Gulp --prod the highchart files are deleted from /lib/highcharts Can you please give instruction how to add js library. Should i use npm, bower, gulp, candycrush... please clarify
Thanx Jims, your solutions works!
I experience the same (v5.04) no errors. Also changing Header bar -> skin to Dark, doesn't work with menu on left side
Is it possible to toggle the sidebar from mvc controller? Certain pages i want the sidebar be closed when opening. Do i need to add a ViewBag property to the layout? or is it already build in?