Class: Element

Inherits:
Object show all
Defined in:
lib/wedge/opal.rb,
lib/wedge/utilis/element.rb,
lib/wedge/plugins/uploader.rb

Instance Method Summary collapse

Instance Method Details

#fine_uploader_dnd(options = {}) ⇒ Object



303
304
305
306
# File 'lib/wedge/plugins/uploader.rb', line 303

def fine_uploader_dnd options = {}
  options = options.to_n
  `self.fineUploaderDnd(options)`
end

#fine_uploader_s3(type, options = false) ⇒ Object



308
309
310
311
312
313
314
315
# File 'lib/wedge/plugins/uploader.rb', line 308

def fine_uploader_s3 type, options = false
  if !options
    options = type.to_n
    `self.fineUploaderS3(options)`
  else
    `self.fineUploaderS3(type, options)`
  end
end

#get_script(url, &block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/wedge/utilis/element.rb', line 9

def get_script url, &block
  %x{
    $.getScript(url, function(){
      #{block.call if block_given?}
    });
  }
end