Sha256: 008ad74851d232d817d24a75290b0865a4958bc99b023963af3cee6e8dd751c9

Contents?: true

Size: 399 Bytes

Versions: 8

Compression:

Stored size: 399 Bytes

Contents

// The visit function is used to direct the user to the given URL. It is provided as an abstraction as the redirection
// is handled differently depending on whether or not Turbolinks is enabled.
//
//     Trestle.visit("/admin/pages");
//
if (Trestle.turbolinks) {
  Trestle.visit = function(url) { Turbolinks.visit(url); };
} else {
  Trestle.visit = function(url) { document.location = url; };
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
trestle-0.8.13 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.12 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.11 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.10 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.9 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.8 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.7 app/assets/javascripts/trestle/core/_visit.js
trestle-0.8.6 app/assets/javascripts/trestle/core/_visit.js