EasyUI Forum

General Category => Bug Report => Topic started by: Opan Mustopah on December 04, 2014, 04:23:01 AM



Title: bugs in easyloader.js version 1.4 or routes unmatch /.plugins/jquery.parser.js
Post by: Opan Mustopah on December 04, 2014, 04:23:01 AM
hello everyone,

i just found a bug in easyloader.js plugins.

in development environment, the easyloader.base generate right path for jquery.parser.js example:

localhost:3000/assets/plugins/jquery.parser.js..

but in production environmetn, easyloader.base generate only a dot (.), not the right path for assets like this:

localhost:3000/.plugins/jquery.parser.js, it always give me an error when i deploy my project in production.

but i temporary fixit with give a condition in this syntax:

Code:
if (easyloader.base == '.'){
       var url = window.location.protocol+'//'+window.location.hostname+':'+window.location.port+'/assets/plugins/' + _13['js'];
     }else{    
       var url = easyloader.base + 'plugins/' + _13['js'];
     }

btw i'm using ruby on rails, with rails 4.1.4, ruby 2.0.0, end easyui version 1.4

hope its helps for anyone get problem like me