[WIP] Working on uploader
This commit is contained in:
@@ -13,7 +13,7 @@ function renderContractDriveTPL(filename, data, selector) {
|
||||
function getTemplate(file, data) {
|
||||
var source = getSource(file);
|
||||
var template = Handlebars.compile(source);
|
||||
return template(data);
|
||||
return template(data);
|
||||
}
|
||||
|
||||
function getSource(file) {
|
||||
@@ -21,11 +21,11 @@ function getSource(file) {
|
||||
$.ajax({
|
||||
async: false,
|
||||
dataType: 'html',
|
||||
type: 'GET',
|
||||
url: file + '?' + Date.now(),
|
||||
success: function(data) {
|
||||
source = data;
|
||||
}
|
||||
type: 'GET',
|
||||
url: file + '?' + Date.now(),
|
||||
success: function(data) {
|
||||
source = data;
|
||||
}
|
||||
});
|
||||
return source;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user