trek (owner)

Revisions

gist: 119446 Download_button fork
public
Public Clone URL: git://gist.github.com/119446.git
Embed All Files: show embed
view_initialization.js #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  $("#picker").outlet(ColorsController, 'colorPicker');
  
  // image preview control views
  $('#image-picker').outlet(ImagesController, 'imagePicker').connect('toggle', 'ImagesController.imagePickerShowing');;
  $('#image-picker .close').actions({
    'click' : 'ImagesController.hideImagePicker'
  });
  
  $('#profile_image').outlet(ImagesController, 'imageInput').blur(function(){
    $(this).val('');
  }).keyup(function(){
    $(this).val('');
  }).actions({
    'focus' : 'ImagesController.showImagePicker'
  });
  
  $('.navigation img.forward').outlet(ImagesController, 'forwardButton').actions({
    'click' : 'ImagesController.goForward'
  });
  
  $('.navigation img.back').outlet(ImagesController, 'backButton').actions({
    'click' : 'ImagesController.goBackward'
  });