Skip to content

Commit

Permalink
tweaked notice handling, fixed cp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethn committed Apr 2, 2013
1 parent 57c2747 commit d1fa6db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/assets/javascripts/wagn.js.coffee
Expand Up @@ -125,7 +125,7 @@ $(window).ready ->

$('.slotter').live 'ajax:beforeSend', (event, xhr, opt)->
return if opt.skip_before_send

unless opt.url.match /home_view/ #avoiding duplication. could be better test?
opt.url = wagn.prepUrl opt.url, $(this).slot()

Expand All @@ -150,7 +150,7 @@ $(window).ready ->
iframeUploadFilter = (data)-> data.find('body').html()
opt.dataFilter = iframeUploadFilter
# gets rid of default html and body tags

args = $.extend opt, (widget._getAJAXSettings data), url: opt.url
# combines settings from wagn's slotter and jQuery UI's upload widget
args.skip_before_send = true #avoid looping through this method again
Expand All @@ -163,8 +163,8 @@ $(window).ready ->
$(this).find('.card-content').attr('no-autosave','true')
true

# $('.submitter').live 'click', ->
# $(this).closest('form').submit()
$('.submitter').live 'click', ->
$(this).closest('form').submit()

$('.renamer-updater').live 'click', ->
$(this).closest('form').find('.update_referencers').val 'true'
Expand Down
2 changes: 2 additions & 0 deletions lib/wagn/set/all/rich_html.rb
Expand Up @@ -223,6 +223,7 @@ module Set::All::RichHtml
</div>
</fieldset>
</div>
#{ notice }
}
end
end)
Expand Down Expand Up @@ -260,6 +261,7 @@ module Set::All::RichHtml
#{ button_tag 'Cancel', :class=>'cancel-button slotter', :href=>path, :type=>'button' }
</div>
</fieldset>
#{ notice }
}
end
end
Expand Down

0 comments on commit d1fa6db

Please sign in to comment.