Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
laravel unlock delete button
HTML::macro('unlock_delete', function($url, $message = 'Confirm delete?', $class = "")
return "
<div class='btn-group'>
<span class='btn {$class} btn-danger disabled' data-url=\"" . url($url) . "\" data-message=\"{$message}\">
<i class='icon-remove'></i>
<span class='btn {$class} unlock-btn'>
<i class='icon-lock'></i> Unlock
$('.unlock-btn').live('click', function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment