|
|
@ -973,18 +973,21 @@ function initMenuEnvironment() {
|
|
|
|
|
|
|
|
|
|
|
|
function selectGlobalScope() {
|
|
|
|
function selectGlobalScope() {
|
|
|
|
setUserSetting('popupScopeLevel', '*');
|
|
|
|
setUserSetting('popupScopeLevel', '*');
|
|
|
|
|
|
|
|
matrixSnapshot.tMatrixModifiedTime = undefined;
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
dropDownMenuHide();
|
|
|
|
dropDownMenuHide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function selectDomainScope() {
|
|
|
|
function selectDomainScope() {
|
|
|
|
setUserSetting('popupScopeLevel', 'domain');
|
|
|
|
setUserSetting('popupScopeLevel', 'domain');
|
|
|
|
|
|
|
|
matrixSnapshot.tMatrixModifiedTime = undefined;
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
dropDownMenuHide();
|
|
|
|
dropDownMenuHide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function selectSiteScope() {
|
|
|
|
function selectSiteScope() {
|
|
|
|
setUserSetting('popupScopeLevel', 'site');
|
|
|
|
setUserSetting('popupScopeLevel', 'site');
|
|
|
|
|
|
|
|
matrixSnapshot.tMatrixModifiedTime = undefined;
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
updateMatrixSnapshot();
|
|
|
|
dropDownMenuHide();
|
|
|
|
dropDownMenuHide();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1196,7 +1199,8 @@ var matrixSnapshotPoller = (function() {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
response.mtxContentModified === false &&
|
|
|
|
response.mtxContentModified === false &&
|
|
|
|
response.mtxCountModified === false &&
|
|
|
|
response.mtxCountModified === false &&
|
|
|
|
response.mtxColorModified === false
|
|
|
|
response.pMatrixModified === false &&
|
|
|
|
|
|
|
|
response.tMatrixModified === false
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1208,7 +1212,11 @@ var matrixSnapshotPoller = (function() {
|
|
|
|
if ( response.mtxCountModified ) {
|
|
|
|
if ( response.mtxCountModified ) {
|
|
|
|
updateMatrixCounts();
|
|
|
|
updateMatrixCounts();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( response.mtxColorModified ) {
|
|
|
|
if (
|
|
|
|
|
|
|
|
response.pMatrixModified ||
|
|
|
|
|
|
|
|
response.tMatrixModified ||
|
|
|
|
|
|
|
|
response.scopeModified
|
|
|
|
|
|
|
|
) {
|
|
|
|
updateMatrixColors();
|
|
|
|
updateMatrixColors();
|
|
|
|
updateMatrixBehavior();
|
|
|
|
updateMatrixBehavior();
|
|
|
|
updateMatrixButtons();
|
|
|
|
updateMatrixButtons();
|
|
|
@ -1225,9 +1233,11 @@ var matrixSnapshotPoller = (function() {
|
|
|
|
messager.send({
|
|
|
|
messager.send({
|
|
|
|
what: 'matrixSnapshot',
|
|
|
|
what: 'matrixSnapshot',
|
|
|
|
tabId: matrixSnapshot.tabId,
|
|
|
|
tabId: matrixSnapshot.tabId,
|
|
|
|
mtxColorModifiedTime: matrixSnapshot.mtxColorModifiedTime,
|
|
|
|
|
|
|
|
mtxContentModifiedTime: matrixSnapshot.mtxContentModifiedTime,
|
|
|
|
mtxContentModifiedTime: matrixSnapshot.mtxContentModifiedTime,
|
|
|
|
mtxCountModifiedTime: matrixSnapshot.mtxCountModifiedTime
|
|
|
|
mtxCountModifiedTime: matrixSnapshot.mtxCountModifiedTime,
|
|
|
|
|
|
|
|
mtxDiffCount: matrixSnapshot.diff.length,
|
|
|
|
|
|
|
|
pMatrixModifiedTime: matrixSnapshot.pMatrixModifiedTime,
|
|
|
|
|
|
|
|
tMatrixModifiedTime: matrixSnapshot.tMatrixModifiedTime,
|
|
|
|
}, onPolled);
|
|
|
|
}, onPolled);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|