-
AuthorPosts
-
dieudonne Friend
dieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
February 20, 2013 at 9:58 am #484021@ digimax001 : please read the doc :
http://t3-framework.org/documentation/t3-settings.html
Specially the point II : Compile LESS to CSS@ Wall Crasher : ok I’ll test it. Thank.
2 users say Thank You to dieudonne for this useful post
dieudonne Frienddieudonne
- Join date:
- January 2011
- Posts:
- 947
- Downloads:
- 61
- Uploads:
- 266
- Thanks:
- 452
- Thanked:
- 107 times in 3 posts
February 20, 2013 at 12:42 pm #484051Hello,
ok in plugins/system/jat3v3/admin/js/t3v3admin.js we changed this (from line 43 to 69)
$('#t3-toolbar-recompile').on('click', function(){
var jrecompile = $(this);
jrecompile.addClass('loading');
$.get(T3V3Admin.adminurl, {'t3action': 'lesscall'}, function(rsp){
jrecompile.removeClass('loading');rsp = $.trim(rsp);
if(rsp){
var json = rsp;
if(rsp.charAt(0) != '[' && rsp.charAt(0) != '{'){
json = rsp.match(/{.*?}/);
if(json && json[0]){
json = json[0];
}
}if(json && typeof json == 'string'){
json = $.parseJSON(json);if(json && (json.error || json.successful)){
T3V3Admin.systemMessage(json.error || json.successful);
}
}
}
});
return false;
});to this (like you say)
$('#t3-admin-tb-recompile').on('click', function(){
var jrecompile = $(this);
jrecompile.addClass('loading');
$.get(T3Admin.adminurl, {'t3action': 'lesscall'}, function(rsp){
jrecompile.removeClass('loading');rsp = $.trim(rsp);
if(rsp){
var json = rsp;
if(rsp.charAt(0) != '[' && rsp.charAt(0) != '{'){
json = rsp.match(/{.*?}/);
if(json && json[0]){
json = json[0];
}
}if(json && typeof json == 'string'){
json = $.parseJSON(json);if(json && (json.error || json.successful)){
T3Admin.systemMessage(json.error || json.successful);
}
}
}
});
return false;
});And tried again… start at 13h10. It is 13h43 now and it still running…
and what is the difference between the new code and existing code ?
Thank in advance for any help.
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
February 21, 2013 at 4:43 am #484117Hi dieudonne,
I have checked your site.
I think your server is slow for this heavy task.
I try to call the less compile and it only success serveral time.
For other, it is 500 Internal Server Error.I would like to check the error log of PHP on your server to see what is wrong here.
Please try to contact to your hosting service and ask about this.
LESS compile is a heavy progress, and it become more heavy if you have more theme to compile.I also attach the correct code of Compile LESS to CSS button
$('#t3-toolbar-recompile').on('click', function(){
var jrecompile = $(this);
jrecompile.addClass('loading');
$.ajax({
url: T3V3Admin.adminurl,
data: {'t3action': 'lesscall'},
success: function(rsp){
jrecompile.removeClass('loading');rsp = $.trim(rsp);
if(rsp){
var json = rsp;
if(rsp.charAt(0) != '[' && rsp.charAt(0) != '{'){
json = rsp.match(/{.*?}/);
if(json && json[0]){
json = json[0];
}
}if(json && typeof json == 'string'){
json = $.parseJSON(json);if(json && (json.error || json.successful)){
T3V3Admin.systemMessage(json.error || json.successful);
}
}
}
},error: function(){
jrecompile.removeClass('loading');T3V3Admin.systemMessage('Unknow error from server');
}
});return false;
});Regards
-
AuthorPosts
This topic contains 18 replies, has 7 voices, and was last updated by Wall Crasher 11 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum