Skip to content

Commit

Permalink
Changed scripts path. Now admin scripts are in application/scripts an…
Browse files Browse the repository at this point in the history
…d general scripts in scripts/

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@10262 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
sachdeva-shubham committed Jun 13, 2011
1 parent 6a00943 commit 768add1
Show file tree
Hide file tree
Showing 129 changed files with 14,653 additions and 0 deletions.
673 changes: 673 additions & 0 deletions scripts/ajaxupload.js

Large diffs are not rendered by default.

122 changes: 122 additions & 0 deletions scripts/coookies.js
@@ -0,0 +1,122 @@
/**
* Cookies.js, providing easy access to cookies thru the cookiejar object. Enabling so-called "subcookies" thru the subcookiejar
* object.
* See this related blogpost for more information on how to use these objects:
* <http://www.whatstyle.net/articles/28/subcookies>
* Check out this other blogpost for information about the new version:
* <http://www.whatstyle.net/articles/46/subcookies_v2>
*
* @author Harmen Janssen <http://www.whatstyle.net>
* @version 2.0
*
*/

/* based on http://www.quirksmode.org/js/cookies.html, by Peter-Paul Koch */
var cookiejar = {
/* set a cookie */
bake: function(cookieName,cookieValue,days,path) {
var expires='';
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
}
var thePath = '; path=/';
if (path) {
thePath = '; path=' + path;
}
document.cookie = cookieName+'='+escape(cookieValue)+expires+thePath;
return true;
},
/* get a cookie value */
fetch: function(cookieName) {
var nameEQ = cookieName + '=';
var ca = document.cookie.split(';');
for (var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return unescape(c.substring(nameEQ.length, c.length));
}
}
return null;
},
/* delete a cookie */
crumble: function(cookieName) {
return cookiejar.bake(cookieName,'',-1);
}
};

/* circumventing browser restrictions on the number of cookies one can use */
var subcookiejar = {
nameValueSeparator: '$$:$$',
subcookieSeparator: '$$/$$',
/* set a cookie. subcookieObj is a collection of cookies to be. Every member of subcookieObj is the name of the cookie, its value
* the cookie value
*/
bake: function(cookieName,subcookieObj,days,path) {
var existingCookie;
/* check for existing cookie */
if (existingCookie = subcookiejar.fetch (cookieName)) {
/* if a cookie by the same name is found,
* append its values to the subcookieObj.
*/
for (var i in existingCookie) {
if (!(i in subcookieObj)) {
subcookieObj[i] = existingCookie[i];
}
}
}
var cookieValue = '';
for (var i in subcookieObj) {
cookieValue += i + subcookiejar.nameValueSeparator;
cookieValue += subcookieObj[i];
cookieValue += subcookiejar.subcookieSeparator;
}
/* remove trailing subcookieSeparator */
cookieValue = cookieValue.substring(0,cookieValue.length-subcookiejar.subcookieSeparator.length);
return cookiejar.bake(cookieName,cookieValue,days,path);
},
/* get a subcookie */
fetch: function(cookieName,subcookieName) {
var cookieValue = cookiejar.fetch(cookieName);
/* proceed only if a cookie was found */
if (!cookieValue) {
return null;
}
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
var cookieObj = {};
for (var i=0,sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
cookieObj [sc[0]] = sc[1];
}
/* if subcookieName is given, return that subcookie if available, or null.
* else, return the entire cookie as an object literal
*/
if (subcookieName != undefined) {
if (subcookieName in cookieObj) {
return cookieObj[subcookieName];
}
return null;
}
return cookieObj;
},
/* delete a subcookie */
crumble: function(cookieName,subcookieName,days,path) {
var cookieValue = cookiejar.fetch(cookieName);
if (!cookieValue) {
return false;
}
var newCookieObj = {};
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
for (var i=0, sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
if (sc[0] != subcookieName) {
newCookieObj[sc[0]] = sc[1];
}
}
return subcookiejar.bake(cookieName,newCookieObj,days,path);
}
};
102 changes: 102 additions & 0 deletions scripts/jquery/css/jquery.keypad.alt.css
@@ -0,0 +1,102 @@
/* Alternate style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.25;
filter: alpha(opacity=25);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
text-align: center;
cursor: pointer;
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 108px;
font-weight: bold;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}
124 changes: 124 additions & 0 deletions scripts/jquery/css/jquery.keypad.css
@@ -0,0 +1,124 @@
/* Main style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.5;
filter: alpha(opacity=50);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
background-color: #f4f4f4;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
text-align: center;
cursor: pointer;
}
.keypad-key[disabled] {
border: 2px outset;
}
.keypad-key-down {
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 52px;
color: #fff;
font-weight: bold;
}
.keypad-clear {
background-color: #a00;
}
.keypad-back {
background-color: #00a;
}
.keypad-close {
background-color: #0a0;
}
.keypad-shift {
background-color: #0aa;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}
28 changes: 28 additions & 0 deletions scripts/jquery/css/jquery.multiselect.css
@@ -0,0 +1,28 @@
.ui-multiselect { padding:2px 0 2px 4px; text-align:left }
.ui-multiselect span.ui-icon { float:right }
.ui-multiselect-single input { position:absolute !important; top: auto !important; left:-9999px; }
.ui-multiselect-single label { padding:5px !important }

.ui-multiselect-header { margin-bottom:3px; padding:3px 0 3px 4px }
.ui-multiselect-header ul { font-size:0.9em }
.ui-multiselect-header ul li { float:left; padding:0 10px 0 0 }
.ui-multiselect-header a { text-decoration:none }
.ui-multiselect-header a:hover { text-decoration:underline }
.ui-multiselect-header span.ui-icon { float:left }
.ui-multiselect-header li.ui-multiselect-close { float:right; text-align:right; padding-right:0 }

.ui-multiselect-menu { display:none; padding:3px; position:absolute; z-index:10000 }
.ui-multiselect-checkboxes { position:relative /* fixes bug in IE6/7 */; overflow-y:scroll }
.ui-multiselect-checkboxes label { cursor:default; display:block; border:1px solid transparent; padding:3px 1px }
.ui-multiselect-checkboxes label input { position:relative; top:1px }
.ui-multiselect-checkboxes li { clear:both; font-size:0.9em; padding-right:3px }
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label { text-align:center; font-weight:bold; border-bottom:1px solid }
.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label a { display:block; padding:3px; margin:1px 0; text-decoration:none }

/* remove label borders in IE6 because IE6 does not support transparency */
* html .ui-multiselect-checkboxes label { border:none }

/* Some custom CSS by the LimeSurvey team */
.ui-multiselect-close, .ui-multiselect .ui-icon-triangle-2-n-s {display:none;}
.ui-multiselect-checkboxes .ui-state-hover {font-weight:normal;}

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 768add1

Please sign in to comment.