Fix Bug 59430
This commit is contained in:
parent
220f178f2b
commit
191805b342
|
@ -2202,16 +2202,17 @@ define([
|
|||
this.iFrame.frameBorder = "0";
|
||||
this.iFrame.width = "100%";
|
||||
this.iFrame.height = "100%";
|
||||
if (Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)
|
||||
this.iFrame.onload = function() {
|
||||
try {
|
||||
me.findUrl(me.iFrame.contentWindow.location.href);
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
|
||||
Common.Gateway.on('internalcommand', function(data) {
|
||||
if (data.type == 'help:hyperlink') {
|
||||
var src = data.data;
|
||||
var rec = me.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>0);
|
||||
});
|
||||
if (rec) {
|
||||
me.viewHelpPicker.selectRecord(rec, true);
|
||||
me.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
me.findUrl(data.data);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -2274,13 +2275,7 @@ define([
|
|||
}
|
||||
if (url) {
|
||||
if (this.viewHelpPicker.store.length>0) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (url.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
this.findUrl(url);
|
||||
this.onSelectItem(url);
|
||||
} else
|
||||
this.openUrl = url;
|
||||
|
@ -2289,6 +2284,16 @@ define([
|
|||
|
||||
onSelectItem: function(src) {
|
||||
this.iFrame.src = this.urlPref + src;
|
||||
},
|
||||
|
||||
findUrl: function(src) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -1679,16 +1679,17 @@ define([
|
|||
this.iFrame.frameBorder = "0";
|
||||
this.iFrame.width = "100%";
|
||||
this.iFrame.height = "100%";
|
||||
if (Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)
|
||||
this.iFrame.onload = function() {
|
||||
try {
|
||||
me.findUrl(me.iFrame.contentWindow.location.href);
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
|
||||
Common.Gateway.on('internalcommand', function(data) {
|
||||
if (data.type == 'help:hyperlink') {
|
||||
var src = data.data;
|
||||
var rec = me.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>0);
|
||||
});
|
||||
if (rec) {
|
||||
me.viewHelpPicker.selectRecord(rec, true);
|
||||
me.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
me.findUrl(data.data);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1751,13 +1752,7 @@ define([
|
|||
}
|
||||
if (url) {
|
||||
if (this.viewHelpPicker.store.length>0) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (url.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
this.findUrl(url);
|
||||
this.onSelectItem(url);
|
||||
} else
|
||||
this.openUrl = url;
|
||||
|
@ -1766,6 +1761,16 @@ define([
|
|||
|
||||
onSelectItem: function(src) {
|
||||
this.iFrame.src = this.urlPref + src;
|
||||
},
|
||||
|
||||
findUrl: function(src) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -2070,16 +2070,17 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
this.iFrame.frameBorder = "0";
|
||||
this.iFrame.width = "100%";
|
||||
this.iFrame.height = "100%";
|
||||
if (Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86)
|
||||
this.iFrame.onload = function() {
|
||||
try {
|
||||
me.findUrl(me.iFrame.contentWindow.location.href);
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
|
||||
Common.Gateway.on('internalcommand', function(data) {
|
||||
if (data.type == 'help:hyperlink') {
|
||||
var src = data.data;
|
||||
var rec = me.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>0);
|
||||
});
|
||||
if (rec) {
|
||||
me.viewHelpPicker.selectRecord(rec, true);
|
||||
me.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
me.findUrl(data.data);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -2142,13 +2143,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
}
|
||||
if (url) {
|
||||
if (this.viewHelpPicker.store.length>0) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (url.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
this.findUrl(url);
|
||||
this.onSelectItem(url);
|
||||
} else
|
||||
this.openUrl = url;
|
||||
|
@ -2157,6 +2152,16 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
|||
|
||||
onSelectItem: function(src) {
|
||||
this.iFrame.src = this.urlPref + src;
|
||||
},
|
||||
|
||||
findUrl: function(src) {
|
||||
var rec = this.viewHelpPicker.store.find(function(record){
|
||||
return (src.indexOf(record.get('src'))>=0);
|
||||
});
|
||||
if (rec) {
|
||||
this.viewHelpPicker.selectRecord(rec, true);
|
||||
this.viewHelpPicker.scrollToRecord(rec);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue