Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Disables (functionally and visually) the ability to upload the same photo
- # multiple times.
- jQuery.fn.disableSubmission = ->
- @val "Adding..."
- @attr 'disabled', 'disabled'
- @removeClass 'search-btn-green'
- @addClass 'search-btn-orange'
- return this
- jQuery ->
- class ProfilePane
- options:
- width: "640px"
- constructor: (opts) ->
- @options = $.extend(@options, opts)
- $.colorbox
- width: @options.width
- href: @options.route
- $("[data-action=switchChange]").change (_e) ->
- window.location.href = $(this).data("route").replace(/business_users\/profiles\/([a-z-_0-9]*)/, "business_users/profiles/#{$(this).val()}")
- $(".biz-user-tabs.profiles").bind 'tabsload', ->
- window.loadCategorySelector()
- window.ProfilePane = ProfilePane
- $("#account_stats_form")
- .live "ajax:success", (event, data, status, xhr) ->
- $(".account_stats_content").html(data)
- .live "ajax:error", (event, xhr, status, error) ->
- alert("Sorry, an error occurred while updating. Error: " + error)
- $('[data-action=paidFeature]').live 'click', (_event) ->
- $("#paid_features").show()
- $('[data-action=firstTimePane]').live 'click', (_event) =>
- route = $(_event.currentTarget).data('route')
- new window.ProfilePane({ route: route })
- return false
- new actions.search.admin.SearchAction(name: 'biz-search', model: "calls", formSelector: "#business_user_search_form")
- new actions.search.admin.SortAction(model: "calls", formSelector: "#business_user_search_form")
- new actions.search.admin.PaginateAction(model: "calls", selector: ".pagination a", formSelector: "#business_user_search_form")
- new actions.rest.UpdateAction(model: "calls", id: "call", item_id_tag: "call-id", fields: ['notes', 'cat'])
- new actions.calls.RejectAction(model: "calls", id: "call", item_id_tag: "call-id")
- new actions.calls.AcceptAction(model: "calls", id: "call", item_id_tag: "call-id")
- new actions.calls.UnverifyAction(model: "calls", id: "call", item_id_tag: "call-id")
- actions.calls.PlayPauseAction.get()
- actions.calls.SeekAction.get()
Add Comment
Please, Sign In to add comment