Разлика между версии на „Потребител:V111P/js/QuickDiffCommands.js“

м
редакция без резюме
м
м
 
 
quickDiffPatch: function (undo) {
if (QuickDiff && QuickDiff.originalGetViewWindow) {
if (undo) {
QuickDiff.getViewWindow = QuickDiffCmdsQuickDiff.originalGVWoriginalGetViewWindow;
if (QuickDiffCmds.originalGVW)
QuickDiff.getViewWindow = QuickDiffCmds.originalGVW;
return;
}
if (undo) {return;
 
QuickDiffCmdsQuickDiff.originalGVWoriginalGetViewWindow = QuickDiff.getViewWindow;
 
QuickDiff.getViewWindow = function () {
$menu = QuickDiffCmds.$menu = QuickDiffCmds.buildMenu();
}
var win = QuickDiffCmdsQuickDiff.originalGVW.calloriginalGetViewWindow(QuickDiff);
win && win.prepend && win.prepend($menu);
return win;