Guest User

Untitled

a guest
May 21st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. function dropFile()
  2. {
  3. $(".File_div").draggable({
  4. helper:'clone',
  5. revert: 'invalid'
  6. });
  7. var tag="#Normal_Tag1_div_dummy1";
  8. $(Normal_Tag1_div_dummy1).droppable({
  9. drop: function(ev,ui) { alert('dropped');
  10. //accept: ".File_div"
  11. var dropped = ui.draggable;
  12. alert(dropped);
  13. var file_img_src=document.getElementById('file_img').src;
  14. var image='<img id="file_img'+count+'" class ="file_img" name="file_img" src='+file_img_src+" />"
  15. $(image).appendTo(this).dblclick(
  16. function(event){
  17. alert("1");
  18. window.event.cancelBubble = true;
  19. //var jsmarty=WMCreateSmartyObject();
  20. //var test_tpl= WMSmartyFetch(jsmarty, 'dialog.tpl');
  21. //document.getElementById('test').innerHTML=test_tpl;
  22. //dialogtest();
  23. $("#dialog1").dialog(
  24. {
  25. /* buttons:
  26. {
  27. "Upload file": function(){
  28. },
  29. Cancel: function() {
  30. $(this).dialog('close');
  31. }
  32. },*/
  33. close: function() {
  34. }
  35. });
  36. alert("2");
  37. });
  38.  
  39. }
  40.  
  41. });
  42.  
  43. count++;
  44.  
  45. }
  46.  
  47. close:function()
  48. {
  49. $('#dialog1').dialog('destroy');
  50. }
Add Comment
Please, Sign In to add comment