Created
February 25, 2010 22:45
-
-
Save apipkin/315127 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updateModalUrl : function(type, value) { | |
var url = Y.Echofin.Modal.Upload.getUrl(); | |
if(url.indexOf(type) < 0) { | |
url += '/' + type + '/' + value; | |
}else{ | |
var start = url.indexOf(type) + type.length + 1; | |
var end = url.indexOf('/',start); | |
var build = url.substring(0,start) + value + url.substring(end); | |
url = build | |
} | |
Y.log(url); | |
Y.Echofin.Modal.Upload.getUrl(); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment