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:
2019-07-08 18:05:54 +02:00
parent 3497104f41
commit 2af4b8cf50
66 changed files with 870 additions and 2393 deletions

View File

@ -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+\"&notice=\"+notice;
var request = token+\"=1&notice=\"+notice;
}
return jQuery.ajax({
type: \"POST\",