EasyUI Forum
May 18, 2024, 11:30:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: bugs in easyloader.js version 1.4 or routes unmatch /.plugins/jquery.parser.js  (Read 5355 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« 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

Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!