uploader v0.1

This commit is contained in:
2015-12-16 22:52:17 +01:00
parent 8d60f8a20c
commit 7e2cdb9861
9 changed files with 1474 additions and 3276 deletions

View File

@@ -65,7 +65,6 @@ oSpot.pageInit = function(asHash)
{
mouseover: function(marker, event, context)
{
console.log('over');
var map = $(this).gmap3("get"), infowindow = $(this).gmap3({get:{name:"infowindow"}});
if(infowindow)
{

28
masks/upload.html Normal file
View File

@@ -0,0 +1,28 @@
<div id="messages">
<input id="fileupload" type="file" name="files[]" multiple>
<div id="progress">
<div class="bar" style="width: 0%;"></div>
</div>
</div>
<script type="text/javascript">
oSpot.pageInit = function(asHash)
{
$('#fileupload')
.attr('data-url', self.getActionLink('upload'))
.fileupload({
dataType: 'json',
done: function (e, data) {
$.each(data.result.files, function (index, file) {
$('<p/>').text(file.name).appendTo(document.body);
});
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('#progress .bar').css(
'width',
progress + '%'
);
}
});
};
</script>