Updating oauth local auth.
This commit is contained in:
@@ -1,76 +1,69 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm type="xmlform" name="cases_ReassignBy.xml" width="600" enabletemplate="1" mode="edit">
|
||||
|
||||
<title type="subtitle" enableHTML="1">
|
||||
<en><![CDATA[<center>Reassignment of Cases</center>]]></en>
|
||||
</title>
|
||||
|
||||
<REASSIGN_BY type="radiogroup" required="0" defaultvalue="1" mode="edit">
|
||||
<en>Reassign By<option name="1">Case</option><option name="2">User</option></en>
|
||||
</REASSIGN_BY>
|
||||
|
||||
<REASSIGN_USER type="dropdown" required="0" readonly="0" mode="edit" sqlconnection="dbarray"><![CDATA[
|
||||
<title type="subtitle" enableHTML="1">
|
||||
<en><![CDATA[<center>Reassignment of Cases</center>]]></en>
|
||||
</title>
|
||||
<REASSIGN_BY type="radiogroup" required="0" defaultvalue="1" mode="edit">
|
||||
<en><![CDATA[Reassign By]]><option name="1"><![CDATA[Case]]></option><option name="2"><![CDATA[User]]></option></en>
|
||||
</REASSIGN_BY>
|
||||
<REASSIGN_USER type="dropdown" required="0" readonly="0" mode="edit" sqlconnection="dbarray"><![CDATA[
|
||||
SELECT * FROM aUserInfo
|
||||
]]><en>
|
||||
<option name=""> - Select - </option>
|
||||
</en>
|
||||
</REASSIGN_USER>
|
||||
]]><en><![CDATA[]]><option name=""><![CDATA[- Select -]]></option></en></REASSIGN_USER>
|
||||
<JS type="javascript"><![CDATA[
|
||||
|
||||
<JS type="javascript"><![CDATA[
|
||||
|
||||
var bFlag = false;
|
||||
var client = getBrowserClient();
|
||||
|
||||
var dynaformOnload = function() {
|
||||
if (!bFlag) {
|
||||
if( client.browser == 'msie'){
|
||||
document.getElementById('form[REASSIGN_BY][1]').onclick= function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
|
||||
window.location = 'cases_List?l=to_reassign';
|
||||
}
|
||||
}
|
||||
};
|
||||
document.getElementById('form[REASSIGN_BY][2]').onclick= function() {
|
||||
if (document.getElementById('form[REASSIGN_BY][2]').checked) {
|
||||
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
|
||||
window.location = 'cases_ReassignByUser';
|
||||
}
|
||||
}
|
||||
};
|
||||
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
|
||||
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + getField('REASSIGN_USER').value;
|
||||
});
|
||||
} else { //for other firefox, safari, etc..
|
||||
leimnud.event.add(getField('REASSIGN_BY][1'), 'click', function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
|
||||
window.location = 'cases_List?l=to_reassign';
|
||||
}
|
||||
}
|
||||
});
|
||||
leimnud.event.add(getField('REASSIGN_BY][2'), 'click', function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
|
||||
window.location = 'cases_ReassignByUser';
|
||||
}
|
||||
}
|
||||
});
|
||||
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
|
||||
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + this.value;
|
||||
});
|
||||
}
|
||||
bFlag = true;
|
||||
}
|
||||
};
|
||||
|
||||
if (getField('REASSIGN_BY][2').checked){
|
||||
//showRowById('REASSIGN_USER');
|
||||
document.getElementById('form[REASSIGN_USER]').style.display = 'block';
|
||||
} else {
|
||||
//hideRowById('REASSIGN_USER');
|
||||
document.getElementById('form[REASSIGN_USER]').style.display = 'none';
|
||||
}
|
||||
var bFlag = false;
|
||||
var client = getBrowserClient();
|
||||
|
||||
var dynaformOnload = function() {
|
||||
if (!bFlag) {
|
||||
if( client.browser == 'msie'){
|
||||
document.getElementById('form[REASSIGN_BY][1]').onclick= function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
|
||||
window.location = 'cases_List?l=to_reassign';
|
||||
}
|
||||
}
|
||||
};
|
||||
document.getElementById('form[REASSIGN_BY][2]').onclick= function() {
|
||||
if (document.getElementById('form[REASSIGN_BY][2]').checked) {
|
||||
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
|
||||
window.location = 'cases_ReassignByUser';
|
||||
}
|
||||
}
|
||||
};
|
||||
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
|
||||
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + getField('REASSIGN_USER').value;
|
||||
});
|
||||
} else { //for other firefox, safari, etc..
|
||||
leimnud.event.add(getField('REASSIGN_BY][1'), 'click', function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_List?l=to_reassign') == -1) {
|
||||
window.location = 'cases_List?l=to_reassign';
|
||||
}
|
||||
}
|
||||
});
|
||||
leimnud.event.add(getField('REASSIGN_BY][2'), 'click', function() {
|
||||
if (this.checked) {
|
||||
if (window.location.href.indexOf('cases_ReassignByUser') == -1) {
|
||||
window.location = 'cases_ReassignByUser';
|
||||
}
|
||||
}
|
||||
});
|
||||
leimnud.event.add(getField('REASSIGN_USER'), 'change', function() {
|
||||
window.location = 'cases_ReassignByUser?REASSIGN_USER=' + this.value;
|
||||
});
|
||||
}
|
||||
bFlag = true;
|
||||
}
|
||||
};
|
||||
|
||||
if (getField('REASSIGN_BY][2').checked){
|
||||
//showRowById('REASSIGN_USER');
|
||||
document.getElementById('form[REASSIGN_USER]').style.display = 'block';
|
||||
} else {
|
||||
//hideRowById('REASSIGN_USER');
|
||||
document.getElementById('form[REASSIGN_USER]').style.display = 'none';
|
||||
}
|
||||
|
||||
]]></JS>
|
||||
</dynaForm>
|
||||
</dynaForm>
|
||||
|
||||
Reference in New Issue
Block a user