Skip to content
Snippets Groups Projects
Commit 915fd147 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

SMS handling. Bootstrap lightbox is facing a big update, get ready 2.2.2.

parent 1c0db5f9
Branches
Tags
No related merge requests found
...@@ -439,6 +439,10 @@ $(document).ready(function() { ...@@ -439,6 +439,10 @@ $(document).ready(function() {
ajaxLogin(this); ajaxLogin(this);
return false; return false;
}); });
addLightboxFormHandler('newList', function(evt) {
ajaxSubmit($(evt.target), changeModalContent);
return false;
});
addLightboxFormHandler('saveRecord', function(evt) { addLightboxFormHandler('saveRecord', function(evt) {
ajaxSubmit($(evt.target), function(){lightboxConfirm(vufindString['bulk_save_success']);}); ajaxSubmit($(evt.target), function(){lightboxConfirm(vufindString['bulk_save_success']);});
return false; return false;
......
...@@ -163,6 +163,10 @@ $(document).ready(function(){ ...@@ -163,6 +163,10 @@ $(document).ready(function(){
ajaxSubmit($(evt.target), function(){lightboxConfirm(vufindString['bulk_email_success']);}); ajaxSubmit($(evt.target), function(){lightboxConfirm(vufindString['bulk_email_success']);});
return false; return false;
}); });
addLightboxFormHandler('smsRecord', function(evt) {
ajaxSubmit($(evt.target), function(){lightboxConfirm(vufindString['sms_success']);});
return false;
});
// register the record comment form to be submitted via AJAX // register the record comment form to be submitted via AJAX
registerAjaxCommentRecord(); registerAjaxCommentRecord();
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
'bulk_email_success' => 'bulk_email_success', 'bulk_email_success' => 'bulk_email_success',
'bulk_save_success' => 'bulk_save_success', 'bulk_save_success' => 'bulk_save_success',
'close' => 'close', 'close' => 'close',
'loading' => 'Loading' 'loading' => 'Loading',
'sms_success' => 'sms_success'
) )
); );
if ($cart->isActive()) { if ($cart->isActive()) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment