Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dropFile()
- {
- $(".File_div").draggable({
- helper:'clone',
- revert: 'invalid'
- });
- var tag="#Normal_Tag1_div_dummy1";
- $(Normal_Tag1_div_dummy1).droppable({
- drop: function(ev,ui) { alert('dropped');
- //accept: ".File_div"
- var dropped = ui.draggable;
- alert(dropped);
- var file_img_src=document.getElementById('file_img').src;
- var image='<img id="file_img'+count+'" class ="file_img" name="file_img" src='+file_img_src+" />"
- $(image).appendTo(this).dblclick(
- function(event){
- alert("1");
- window.event.cancelBubble = true;
- //var jsmarty=WMCreateSmartyObject();
- //var test_tpl= WMSmartyFetch(jsmarty, 'dialog.tpl');
- //document.getElementById('test').innerHTML=test_tpl;
- //dialogtest();
- $("#dialog1").dialog(
- {
- /* buttons:
- {
- "Upload file": function(){
- },
- Cancel: function() {
- $(this).dialog('close');
- }
- },*/
- close: function() {
- }
- });
- alert("2");
- });
- }
- });
- count++;
- }
- close:function()
- {
- $('#dialog1').dialog('destroy');
- }
Add Comment
Please, Sign In to add comment