The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 0f2a6537 authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent c7c56bfb
No related merge requests found
......@@ -52,6 +52,15 @@ function addItemToCart(id,source) {
$('#cartItems strong').html(parseInt($('#cartItems strong').html(), 10)+1);
return true;
}
function uniqueArray(op) {
var ret = [];
for(var i=0;i<op.length;i++) {
if(ret.indexOf(op[i]) < 0) {
ret.push(op[i]);
}
}
return ret;
}
function removeItemFromCart(id,source) {
var cartItems = getCartItems();
var cartSources = getCartSources();
......@@ -95,16 +104,6 @@ function removeItemFromCart(id,source) {
}
return false;
}
function uniqueArray(op) {
var ret = [];
for(var i=0;i<op.length;i++) {
if(ret.indexOf(op[i]) < 0) {
ret.push(op[i]);
}
}
return ret;
}
function registerUpdateCart($form) {
if($form) {
$("#updateCart, #bottom_updateCart").unbind('click').click(function(){
......
/*global path, vufindString */
/*global Lightbox, path, vufindString */
/* --- GLOBAL FUNCTIONS --- */
function htmlEncode(value){
......
......@@ -52,7 +52,7 @@ var Lightbox = {
if(typeof expectsError === "undefined" || expectsError) {
this.formCallbacks[formName] = function(html) {
Lightbox.checkForError(html, func);
}
};
} else {
this.formCallbacks[formName] = func;
}
......@@ -383,13 +383,13 @@ var Lightbox = {
} else {
$(form).unbind('submit').submit(function(evt){
Lightbox.submit($(evt.target), function(html){
Lightbox.checkForError(html, Lightbox.close)
Lightbox.checkForError(html, Lightbox.close);
});
return false;
});
}
},
}
}
};
/**
* This is a full handler for the login form
......@@ -491,7 +491,7 @@ function ajaxLogin(form) {
}
}
});
};
}
/**
* This is where you add click events to open the lightbox.
......
/*global extractClassParams, Lightbox, path, vufindString */
/*global deparam, extractClassParams, htmlEncode, Lightbox, path, vufindString */
/**
* Functions and event handlers specific to record pages.
......
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