Skip to content

Commit

Permalink
Exclude from global AJAX listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
longwa committed Jun 18, 2013
1 parent da34436 commit c1a562c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion BootstrapCrumbsGrailsPlugin.groovy
@@ -1,5 +1,5 @@
class BootstrapCrumbsGrailsPlugin { class BootstrapCrumbsGrailsPlugin {
def version = "1.0.2" def version = "1.0.3"


// the version or versions of Grails the plugin is designed for // the version or versions of Grails the plugin is designed for
def grailsVersion = "1.3.5 > *" def grailsVersion = "1.3.5 > *"
Expand Down
9 changes: 5 additions & 4 deletions application.properties
@@ -1,4 +1,5 @@
#Grails Metadata file #Grails Metadata file
#Tue Mar 05 19:04:30 EST 2013 #Tue Jun 18 14:21:40 EDT 2013
app.grails.version=2.2.1 app.grails.version=2.2.2
app.name=bootstrap-crumbs app.name=bootstrap-crumbs
plugins.hibernate=2.2.2
6 changes: 0 additions & 6 deletions grails-app/conf/BuildConfig.groovy
Expand Up @@ -12,12 +12,6 @@ grails.project.dependency.resolution = {
repositories { repositories {
grailsCentral() grailsCentral()
mavenCentral() mavenCentral()

// mavenLocal()
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
} }
dependencies { dependencies {
} }
Expand Down
2 changes: 2 additions & 0 deletions grails-app/views/breadcrumbs/_trail.gsp
Expand Up @@ -19,13 +19,15 @@
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: '${createLink(controller: 'crumb', action: 'list')}', url: '${createLink(controller: 'crumb', action: 'list')}',
global: false,
success: function(template){ success: function(template){
$('#breadCrumb').html(template); $('#breadCrumb').html(template);
} }
}); });
} else { // Otherwise tell the server of our new crumb, and display the results } else { // Otherwise tell the server of our new crumb, and display the results
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
global: false,
url: '${createLink(controller: 'crumb', action: 'add')}', url: '${createLink(controller: 'crumb', action: 'add')}',
data: 'name=' + encodeURIComponent(name) + '&href=' + encodeURIComponent(href), data: 'name=' + encodeURIComponent(name) + '&href=' + encodeURIComponent(href),
success: function(template){ success: function(template){
Expand Down

0 comments on commit c1a562c

Please sign in to comment.