1
0
Fork 0

eliminate Cropper conflicts with jQuery

This commit is contained in:
Zach Prezkuta 2013-06-01 10:42:51 -06:00
commit 127b7a589e
72 changed files with 1659 additions and 1817 deletions

View file

@ -23,11 +23,11 @@ document.addEventListener('DOMContentLoaded', function(){
window.imageUploadButton,
{ action: 'wall_upload/'+window.nickname,
name: 'userfile',
onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
onComplete: function(file,response) {
var currentText = $j(window.jotId).val();
$j(window.jotId).val(currentText + response);
$j('#profile-rotator').hide();
var currentText = $(window.jotId).val();
$(window.jotId).val(currentText + response);
$('#profile-rotator').hide();
}
}
);
@ -37,11 +37,11 @@ document.addEventListener('DOMContentLoaded', function(){
'wall-file-upload',
{ action: 'wall_attach/'+window.nickname,
name: 'userfile',
onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
onComplete: function(file,response) {
var currentText = $j(window.jotId).val();
$j(window.jotId).val(currentText + response);
$j('#profile-rotator').hide();
var currentText = $(window.jotId).val();
$(window.jotId).val(currentText + response);
$('#profile-rotator').hide();
}
}
);

View file

@ -1 +1 @@
document.addEventListener("DOMContentLoaded",function(){if(typeof window.AjaxUpload!="undefined"){var uploader=new window.AjaxUpload(window.imageUploadButton,{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){var currentText=$j(window.jotId).val();$j(window.jotId).val(currentText+response);$j("#profile-rotator").hide()}});if(document.getElementById("wall-file-upload")!=null){var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){var currentText=$j(window.jotId).val();$j(window.jotId).val(currentText+response);$j("#profile-rotator").hide()}})}}});function confirmDelete(f){response=confirm(window.delItem);if(response&&typeof f=="function"){f()}return response}function changeHref(elemId,url){elem=document.getElementById(elemId);elem.href=url}function remove(elemId){elem=document.getElementById(elemId);elem.parentNode.removeChild(elem)}function openClose(el){}
document.addEventListener("DOMContentLoaded",function(){if(typeof window.AjaxUpload!="undefined"){var uploader=new window.AjaxUpload(window.imageUploadButton,{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$("#profile-rotator").show()},onComplete:function(file,response){var currentText=$(window.jotId).val();$(window.jotId).val(currentText+response);$("#profile-rotator").hide()}});if(document.getElementById("wall-file-upload")!=null){var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$("#profile-rotator").show()},onComplete:function(file,response){var currentText=$(window.jotId).val();$(window.jotId).val(currentText+response);$("#profile-rotator").hide()}})}}});function confirmDelete(f){response=confirm(window.delItem);if(response&&typeof f=="function"){f()}return response}function changeHref(elemId,url){elem=document.getElementById(elemId);elem.href=url}function remove(elemId){elem=document.getElementById(elemId);elem.parentNode.removeChild(elem)}function openClose(el){}