Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#hdselect").click(function(){
- $(".modal").html("");
- $.post('mediaservice.php',{hd:'ok',images:$("#hdimages").val()},function(data){
- $(".modal").append(data);
- });
- $(".modal").dialog({
- 'modal':true,
- 'title':"Click the image to select",
- 'width':960,
- 'height':600,
- 'resizable':false,
- 'show': {effect: 'drop', direction: "up"},
- 'buttons': {"Ok": function() {
- var hd=Array();
- var hdval=$("#hdimages").val();
- $("input[name='hd[]']:checked").each(function(){
- hd.push($(this).val());
- });
- if(hdval!=''){
- hdval=hdval+","+hd;
- }else{
- hdval=hd;
- }
- $("#hdimages").val(hdval);
- var images=hdval;
- $.post('mediaservice.php',{getHd:images},function(data){
- $("#imgthumbBase").append(data);
- });
- $(this).dialog("close");
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement