Merge pull request #878 from rahulshukla-webkul/development

Development
This commit is contained in:
Jitendra Singh 2019-04-25 17:53:09 +05:30 committed by GitHub
commit c4efa7b093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"/js/admin.js": "/js/admin.js?id=06de778dcb866c46c8e9",
"/js/admin.js": "/js/admin.js?id=d71088ad6eb332aa8de1",
"/css/admin.css": "/css/admin.css?id=a226571863dbe544b173"
}

View File

@ -28,8 +28,8 @@ window.onload = function () {
if(pageContentHeight <= innerSectionHeight - 60) {
$('.navbar-left').css("position","absolute");
$('.content').css({"position": "fixed", "width": "65%"});
$('.content-wrapper').css({"position": "sticky", "top": "60px"});
// $('.content').css({"position": "fixed", "width": "65%"});
// $('.content-wrapper').css({"position": "sticky", "top": "60px"});
}
else {
$('.accordian-header').on('click',function(event) {

View File

@ -7,7 +7,7 @@ return [
'massaction' => [
'mass-delete-confirm' => 'Do you really want to delete these selected :resource?',
'mass-update-status' => 'Do you really want to update status of these selected :resource?',
'delete' => 'Do you really want to delete this :resource?',
'delete' => 'Do you really want to perform this action?',
'edit' => 'Do you really want to edit this :resource?',
],

View File

@ -703,17 +703,21 @@
doAction(e) {
var element = e.currentTarget;
axios.post(element.getAttribute('data-action'), {
_token : element.getAttribute('data-token'),
_method : element.getAttribute('data-method')
}).then(function(response) {
this.result = response;
location.reload();
}).catch(function (error) {
location.reload();
});
if (confirm('{{__('ui::app.datagrid.massaction.delete') }}')) {
axios.post(element.getAttribute('data-action'), {
_token : element.getAttribute('data-token'),
_method : element.getAttribute('data-method')
}).then(function(response) {
this.result = response;
location.reload();
}).catch(function (error) {
location.reload();
});
e.preventDefault();
e.preventDefault();
} else {
e.preventDefault();
}
},
removeMassActions() {