Created
June 6, 2009 11:51
-
-
Save c3mediagroup/124824 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/www/railsmachine/statusroom(dev_robert) > PAGER=cat git blame public/javascripts/application.js|grep 2009-06 | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 3) | |
3e7659ee (Matt Petty 2009-06-05 07:28:31 -0500 26) _() | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 29) _(this).parent().children('.filter-content').slideToggle(); | |
3e7659ee (Matt Petty 2009-06-05 07:28:31 -0500 30) var drp = _('.date_range_picker:visible', _(this).parent()); | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 32) drp.daterangepicker({ | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 33) presetRanges: [ | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 34) {text: "2006", dateStart: "01/01/2006", dateEnd: "12/31/2006"}, | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 35) {text: "2007", dateStart: "01/01/2007", dateEnd: "12/31/2007"}, | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 36) {text: "2008", dateStart: "01/01/2008", dateEnd: "12/31/2008"}, | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 37) {text: "2009", dateStart: "01/01/2009", dateEnd: "Today"} | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 38) ], | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 39) presets: {}, | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 40) closeOnSelect: true | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 41) }); | |
f35983a7 (Matt Petty 2009-06-05 00:37:11 -0500 50) // report_filter is defined in app/views/shared/_report_filter.haml | |
3e7659ee (Matt Petty 2009-06-05 07:28:31 -0500 51) var inner_page = _(_('.callback_target', schmilter).val()); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 61) this.setup_note_form(); | |
fa4ad1a3 (Matt Petty 2009-06-03 17:53:07 -0500 79) submit_photo: function() { | |
fa4ad1a3 (Matt Petty 2009-06-03 17:53:07 -0500 80) _('#submit_foto_format').val('html'); | |
fa4ad1a3 (Matt Petty 2009-06-03 17:53:07 -0500 81) jQuery('#advisor_profile_form').unbind('submit.ajax').submit(); | |
fa4ad1a3 (Matt Petty 2009-06-03 17:53:07 -0500 82) }, | |
fa4ad1a3 (Matt Petty 2009-06-03 17:53:07 -0500 83) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 84) setup_note_form: function() { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 85) // _('.submit_note').unbind("click").bind("click", function() { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 86) // _('#note_form').submit(); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 87) // return false; | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 88) // }); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 89) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 90) // jQuery('#note_form').unbind('submit').bind('submit', function() { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 91) // var f = jQuery(this); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 92) // jQuery('#notes').post('/notes', f.serialize); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 93) // return false; | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 94) // }); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 95) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 96) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 97) var form = _('#note_form'); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 98) form.unbind('submit.ajax').bind('submit.ajax', function() { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 99) _.post(form.attr('action'), form.serialize(), function(r) { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 100) _('#notes').html(r); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 101) return false; | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 102) }); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 103) return false; | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 104) }); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 105) }, | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 106) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 107) // submit_note: function() { _('#note_form').submit(); }, | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 108) | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 110) // Old skool | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 112) | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 113) }, | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 114) | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 115) bind_ajax_year_selector: function() { | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 116) // New skool | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 117) _('input.year_input').val(val); | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 118) _('') | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 152) | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 153) _('#team_selectarr').unbind("change.team").bind("change.team", function(event){ | |
3b555f9a (Matt Petty 2009-06-06 04:36:28 -0500 154) event.stopPropagation(); | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 155) var val = _(this).val(); | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 156) window.location.href = "/performance/teams/"+val; | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 157) }); | |
e8cae376 (Matt Petty 2009-06-06 03:48:37 -0500 158) | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 181) _('.submit_advisor_profile').unbind("click").bind("click", function() { | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 182) _('#advisor_profile_form').submit(); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 183) }); | |
a60c4386 (Matt Petty 2009-06-03 16:11:17 -0500 184) | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 267) | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 269) | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 345) | |
f295cd37 (Robert Pierce 2009-06-05 17:57:27 -0700 372) if (val == 'Producer Search') { | |
f295cd37 (Robert Pierce 2009-06-05 17:57:27 -0700 378) $(this).val('Producer Search'); | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 413) function addMega(event) { | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 416) jQuery('li.mega').not(current_mega).removeClass("hovering"); | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 417) // jQuery('li.mega').not(current_mega).removeClass("hovering"); | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 430) function toggleMegaMenu(event) { | |
039a2a50 (Robert Pierce 2009-06-03 06:21:37 -0700 447) interval: 100, | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 454) function filterToggle() { jQuery('#filter-views').toggle(); } | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 455) | |
72b8dbc9 (Matt Petty 2009-06-02 12:13:00 -0500 466) } | |
~/www/railsmachine/statusroom(dev_robert) > | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment