mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Prettier hack for avoiding edit navigation
This commit is contained in:
parent
7a0b32eafd
commit
2ba88c2108
@ -26,6 +26,19 @@
|
|||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cms table.ss-gridfield-table tbody td a.tempDisabledEditLink
|
||||||
|
{
|
||||||
|
background: url('../../framework/admin/images/btn-icon/document--pencil.png') no-repeat 2px 0px;
|
||||||
|
display: inline-block;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
text-indent: 119988px;
|
||||||
|
overflow: hidden;
|
||||||
|
vertical-align: middle;
|
||||||
|
background-position: 2px 0px;
|
||||||
|
background-repeat: no-repeat no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
/* ************************************************************************
|
/* ************************************************************************
|
||||||
* EDITING
|
* EDITING
|
||||||
*/
|
*/
|
@ -1,7 +1,8 @@
|
|||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
|
|
||||||
$.entwine('colymba', function($) {
|
$.entwine('colymba', function($) {
|
||||||
|
|
||||||
$('td.col-bulkSelect').entwine({
|
$('td.col-bulkSelect').entwine({
|
||||||
onmatch: function(){
|
onmatch: function(){
|
||||||
},
|
},
|
||||||
@ -9,11 +10,11 @@
|
|||||||
},
|
},
|
||||||
onmouseover: function(){
|
onmouseover: function(){
|
||||||
//disable default row click behaviour -> avoid navigation to edit form when clicking the checkbox
|
//disable default row click behaviour -> avoid navigation to edit form when clicking the checkbox
|
||||||
$(this).parents('.ss-gridfield-item').find('.edit-link').addClass('tempDisabledEditLink').removeClass('edit-link').css('display','none');
|
$(this).parents('.ss-gridfield-item').find('.edit-link').removeClass('edit-link').addClass('tempDisabledEditLink');
|
||||||
},
|
},
|
||||||
onmouseout: function(){
|
onmouseout: function(){
|
||||||
//re-enable default row click behaviour
|
//re-enable default row click behaviour
|
||||||
$(this).parents('.ss-gridfield-item').find('.tempDisabledEditLink').addClass('edit-link').removeClass('tempDisabledEditLink').css('display','inline-block');
|
$(this).parents('.ss-gridfield-item').find('.tempDisabledEditLink').addClass('edit-link').removeClass('tempDisabledEditLink');
|
||||||
},
|
},
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
//check/uncheck checkbox when clicking cell
|
//check/uncheck checkbox when clicking cell
|
||||||
@ -29,6 +30,8 @@
|
|||||||
onunmatch: function(){
|
onunmatch: function(){
|
||||||
},
|
},
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
|
//e.preventDefault();
|
||||||
|
//return false;
|
||||||
}/*,
|
}/*,
|
||||||
onchange: function(){
|
onchange: function(){
|
||||||
var idList, id;
|
var idList, id;
|
||||||
|
Loading…
Reference in New Issue
Block a user