Dotclear

Changeset 250:6f7f02e0b22b


Ignore:
Timestamp:
05/12/11 19:15:15 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Parents:
249:d0a17b7ca6e0 (diff), 248:b4b985c686c8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_media.js

    r224 r250  
    1717      
    1818     if (!$.browser.opera) { 
    19           var cue = $('<a/>').attr({'id':'candyupload-enable','href':'#'}).append(dotclear.msg.activate_enhanced_uploader) 
    20           .click(function() { 
    21                candyUploadInit(); 
    22                return false; 
    23           }); 
    24           $('#media-upload>fieldset').append($('<div></div>').append(cue)); 
    25            
    26           if ($.cookie('dc_candy_upl') == 1) { 
     19          if (dotclear.candyUpload_force_init == '1') { 
    2720               candyUploadInit(); 
    2821          } 
     
    4336                    createControls: function() { 
    4437                         var _this = this; 
    45                          var cud = $('<a/>').attr({'id':'candyupload-disable','href':'#'}).append(dotclear.msg.disable_enhanced_uploader) 
    46                          .click(function() { 
    47                               _this.upldr.destroy(); 
    48                               _this.ctrl.block.empty().remove(); 
    49                               $('#media-upload').show(); 
    50                               delete _this; 
    51                               $.cookie('dc_candy_upl','',{expires: -1}); 
    52                               return false; 
    53                          }); 
    5438                         this.ctrl.btn_browse.hide(); 
    5539                         this.ctrl.msg.html(dotclear.msg.load_enhanced_uploader); 
    56                          this.ctrl.disable = $('<div class="cu-disable"></div>').append(cud).appendTo(this.ctrl.block); 
    5740                    }, 
    5841                    flashReady: function() { 
     
    6750                              }); 
    6851                         }); 
    69                          this.ctrl.block.append(this.ctrl.disable); 
    7052                    }, 
    7153                    uploadSuccess: function(o,data) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map