bundles/org.eclipse.orion.client.ui/web/orion/widgets/themes/ThemeBuilder.js
function checkForChanges(){
		var changed = false;
		for (var i = 0; i < scopeList.length; i++){
			// if a scope is modified
			if (getValueFromPath(currentTheme, scopeList[i].objPath[0]) !== getValueFromPath(originalTheme, scopeList[i].objPath[0])){
				document.getElementById("scopeList").childNodes[i].classList.add('modified');//$NON-NLS-1$ //$NON-NLS-0$
				changed = true;
			}
			else {
				document.getElementById("scopeList").childNodes[i].classList.remove('modified');//$NON-NLS-1$ //$NON-NLS-0$
			}
		}
		//when there is a changed value, theme is now deletable/revertable/renamable
		if (changed){
			document.getElementById("scopeChanged").classList.remove('hide');//$NON-NLS-1$ //$NON-NLS-0$
			document.getElementById("scopeOriginal").classList.add('hide');//$NON-NLS-1$ //$NON-NLS-0$
		}
		else {
			document.getElementById("scopeChanged").classList.add('hide');//$NON-NLS-1$ //$NON-NLS-0$
			document.getElementById("scopeOriginal").classList.remove('hide');//$NON-NLS-1$ //$NON-NLS-0$
		}
	}
function checkForChanges(){
		var changed = false;
		for (var i = 0; i < scopeList.length; i++){
			// if a scope is modified
			if (getValueFromPath(currentTheme, scopeList[i].objPath[0]) !== getValueFromPath(originalTheme, scopeList[i].objPath[0])){
				document.getElementById("scopeList").childNodes[i].classList.add('modified');//$NON-NLS-1$ //$NON-NLS-0$
				changed = true;
			}
			else {
				document.getElementById("scopeList").childNodes[i].classList.remove('modified');//$NON-NLS-1$ //$NON-NLS-0$
			}
		}
		//when there is a changed value, theme is now deletable/revertable/renamable
		if (changed){
			document.getElementById("scopeChanged").classList.remove('hide');//$NON-NLS-1$ //$NON-NLS-0$
			document.getElementById("scopeOriginal").classList.add('hide');//$NON-NLS-1$ //$NON-NLS-0$
		}
		else {
			document.getElementById("scopeChanged").classList.add('hide');//$NON-NLS-1$ //$NON-NLS-0$
			document.getElementById("scopeOriginal").classList.remove('hide');//$NON-NLS-1$ //$NON-NLS-0$
		}
	}
function checkForChanges ( ) { var changed = false ; for ( var i = 0 ; i < scopeList . length ; i ++ ) { // if a scope is modified if ( getValueFromPath ( currentTheme , scopeList [ i ] . objPath [ 0 ] ) !== getValueFromPath ( originalTheme , scopeList [ i ] . objPath [ 0 ] ) ) { document . getElementById ( "scopeList" ) . childNodes [ i ] . classList . add ( 'modified' ) ; //$NON-NLS-1$ //$NON-NLS-0$ changed = true ; } else { document . getElementById ( "scopeList" ) . childNodes [ i ] . classList . remove ( 'modified' ) ; //$NON-NLS-1$ //$NON-NLS-0$ } } //when there is a changed value, theme is now deletable/revertable/renamable if ( changed ) { document . getElementById ( "scopeChanged" ) . classList . remove ( 'hide' ) ; //$NON-NLS-1$ //$NON-NLS-0$ document . getElementById ( "scopeOriginal" ) . classList . add ( 'hide' ) ; //$NON-NLS-1$ //$NON-NLS-0$ } else { document . getElementById ( "scopeChanged" ) . classList . add ( 'hide' ) ; //$NON-NLS-1$ //$NON-NLS-0$ document . getElementById ( "scopeOriginal" ) . classList . remove ( 'hide' ) ; //$NON-NLS-1$ //$NON-NLS-0$ } }
adds status class to scopes
adds status class to scopes