Add random identifier to request url in order to allow proper reload upon multiple navigation requests

This commit is contained in:
guerler
2017-03-10 14:07:15 -05:00
parent 20916c16a9
commit 7523ff6983
4 changed files with 6 additions and 4 deletions
+2
View File
@@ -79,6 +79,8 @@ window.app = function app( options, bootstrapped ){
/** helper to push a new navigation state */
push: function( url, data ) {
data = data || {};
data.__identifer = Math.random().toString( 36 ).substr( 2 );
if ( !$.isEmptyObject( data ) ) {
url += url.indexOf( '?' ) == -1 ? '?' : '&';
url += $.param( data , true );
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long