Removed required from all code/editor field to improve the behavior of the codemirror editor. Improved the token validation via Ajax.
This commit is contained in:
@ -233,7 +233,7 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
function getComponentDetails_server(id){
|
||||
var getUrl = JRouter(\"index.php?option=com_componentbuilder&task=ajax.getComponentDetails&format=json\");
|
||||
if(token.length > 0 && id > 0){
|
||||
var request = 'token='+token+'&id='+id;
|
||||
var request = token+'=1&id='+id;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
@ -278,7 +278,7 @@ class ComponentbuilderViewCompiler extends JViewLegacy
|
||||
var getUrl = JRouter(\"index.php?option=com_componentbuilder&task=ajax.isRead&format=json\");
|
||||
}
|
||||
if(token.length > 0 && notice.length){
|
||||
var request = \"token=\"+token+\"¬ice=\"+notice;
|
||||
var request = token+\"=1¬ice=\"+notice;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: \"POST\",
|
||||
|
Reference in New Issue
Block a user