mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 15:07:56 +01:00
fix rows unclickeables when searching maps that are not in the first page
This commit is contained in:
parent
a8cb63d0d8
commit
2fafbc03a2
@ -253,26 +253,30 @@ function updateStarred(spanElem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function callbackOnTableInit() {
|
function callbackOnTableInit() {
|
||||||
|
var clickAction = function() {
|
||||||
|
$("#mindmapListTable tbody tr").unbind('click').click(
|
||||||
|
function (event) {
|
||||||
|
var target = $(event.target);
|
||||||
|
if (!target.is('.closeTag')) {
|
||||||
|
if (!target.parent().is('.closeTag')) {
|
||||||
|
var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("c/maps/"));
|
||||||
|
window.open(baseUrl + 'c/maps/' + $(this).find('.mindmapName').attr('value') + '/edit', '_self');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
// Register starred events ...
|
// Register starred events ...
|
||||||
$('#mindmapListTable .starredOff, #mindmapListTable .starredOn').click(function (event) {
|
$('#mindmapListTable .starredOff, #mindmapListTable .starredOn').click(function (event) {
|
||||||
updateStarred(this);
|
updateStarred(this);
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#mindmapListTable tbody tr").click(
|
clickAction();
|
||||||
function(event) {
|
|
||||||
var target = $(event.target);
|
|
||||||
if (!target.is('.closeTag')){
|
|
||||||
if (!target.parent().is('.closeTag')) {
|
|
||||||
var baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("c/maps/"));
|
|
||||||
window.open(baseUrl + 'c/maps/' + $(this).find('.mindmapName').attr('value') + '/edit' , '_self');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$('input:checkbox').click(function(event) {
|
$('input:checkbox').click(function(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
});
|
});
|
||||||
updateStatusToolbar();
|
updateStatusToolbar();
|
||||||
|
$("#mindmapListTable").on("draw", clickAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register time update functions ....
|
// Register time update functions ....
|
||||||
|
Loading…
Reference in New Issue
Block a user