if(error != ''){
alert(error);
}else{
- imageUrl.attr('value', fileURL);
+ imageUrl.attr('value', appUrl + fileURL);
}
},
// The input text box
input = doc.createElement("input");
+ input.id = "image-url";
input.type = "text";
input.value = defaultInputText;
style = input.style;
google.load("jquery", "1.4.2");
google.load("jqueryui", "1", {autoload:true});
- var i18nLang = '{{settings.LANGUAGE_CODE}}';
- var scriptUrl = '{{settings.FORCE_SCRIPT_NAME}}/'
- var osqaSkin = '{{settings.OSQA_SKIN}}';
+ var i18nLang = '{{ settings.LANGUAGE_CODE }}';
+ var appUrl = '{{ settings.APP_URL }}'
+ var scriptUrl = '{{ settings.FORCE_SCRIPT_NAME }}/'
+ var osqaSkin = '{{ settings.OSQA_SKIN }}';
var messages = {
username: '{{ user.username }}',