GreatDevelopers/LibreHatti — pull request #247 by piyushparkash (2014-11-12 20:36:19+00:00)
Title: JS Reverse

Implemented JS Reverse

How to use

Wrap all your Ajax Requests like this

$.ajax({url, .... }) === >

reverse('librehatti.catalog.views.index', function(data) {
$ajax({data, ..... });
});

Reverse decodes 'librehatti.catalog.views.index' == > /catalog/index/ and puts it in data var which then can be used in AJAX Requests.