rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var data = prevCell.retrieve('jxCellData'), row = data.row, index = data.index; i++; }while(!data.col.options.isEditable); if(save === false) { this.deactivate(save);
this.grid.selection.select(prevCell);
getPrevCellInRow: function(save) { save = $defined(save) ? save : true; var prevCell, prevRow, i = 0; do { prevCell = i > 0 ? prevCell.getPrevious() : this.activeCell.cell.getPrevious(); // check if cell is still in row, otherwise returns null if(prevCell == null) { prevRow = this.activeCell.cell.getParent('tr').getPrevious(); // check if this was the last row in the table if(prevRow == null) { // @todo this does not always work when shift+tab is hold pressed (out of grid error) prevRow = this.activeCell.cell.getParent('tbody').getLast(); } prevCell = prevRow.getLast(); } var data = prevCell.retrieve('jxCellData'), row = data.row, index = data.index; i++; }while(!data.col.options.isEditable); if(save === false) { this.deactivate(save); } this.grid.selection.select(prevCell); },
this.grid.selection.select(prevCell);
getPrevCellInRow: function(save) { save = $defined(save) ? save : true; var prevCell, prevRow, i = 0; do { prevCell = i > 0 ? prevCell.getPrevious() : this.activeCell.cell.getPrevious(); // check if cell is still in row, otherwise returns null if(prevCell == null) { prevRow = this.activeCell.cell.getParent('tr').getPrevious(); // check if this was the last row in the table if(prevRow == null) { // @todo this does not always work when shift+tab is hold pressed (out of grid error) prevRow = this.activeCell.cell.getParent('tbody').getLast(); } prevCell = prevRow.getLast(); } var data = prevCell.retrieve('jxCellData'), row = data.row, index = data.index; i++; }while(!data.col.options.isEditable); if(save === false) { this.deactivate(save); } this.grid.selection.select(prevCell); },
Ext.getCmp('update-pubmed-region').show();
Ext.getCmp('update-pubmed-region').show(true);
getPubMedForm : function(e) { var pubmedRegion = new Ext.Panel({ baseCls : 'x-plain-panel', disabledClass : 'disabled-plain', id : 'pubmed-region', width : 150, layout : 'table', layoutConfig : { columns : 2 }, defaults : { disabled : !this.editable, disabledClass : 'disabled-plain', fieldClass : 'x-bare-field' }, items : [{ xtype : 'numberfield', allowDecimals : false, minLength : 7, maxLength : 9, allowNegative : false, emptyText : this.isAdmin || this.isUser ? 'Enter pubmed id' : 'Not Available', width : 100, id : 'pubmed-id-field', enableKeyEvents : true, listeners : { 'keyup' : { fn : function(e) { if (Ext.getCmp('pubmed-id-field').isDirty() && Ext.getCmp('pubmed-id-field').isValid()) { // show save // button Ext.getCmp('update-pubmed-region').show(); } else { Ext.getCmp('update-pubmed-region').hide(); } }, scope : this } } }, { baseCls : 'x-plain-panel', id : 'update-pubmed-region', html : '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' + e.id + ',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></a>', hidden : true } ] }); return pubmedRegion; },
Ext.getCmp('update-pubmed-region').hide();
Ext.getCmp('update-pubmed-region').hide(true);
getPubMedForm : function(e) { var pubmedRegion = new Ext.Panel({ baseCls : 'x-plain-panel', disabledClass : 'disabled-plain', id : 'pubmed-region', width : 150, layout : 'table', layoutConfig : { columns : 2 }, defaults : { disabled : !this.editable, disabledClass : 'disabled-plain', fieldClass : 'x-bare-field' }, items : [{ xtype : 'numberfield', allowDecimals : false, minLength : 7, maxLength : 9, allowNegative : false, emptyText : this.isAdmin || this.isUser ? 'Enter pubmed id' : 'Not Available', width : 100, id : 'pubmed-id-field', enableKeyEvents : true, listeners : { 'keyup' : { fn : function(e) { if (Ext.getCmp('pubmed-id-field').isDirty() && Ext.getCmp('pubmed-id-field').isValid()) { // show save // button Ext.getCmp('update-pubmed-region').show(); } else { Ext.getCmp('update-pubmed-region').hide(); } }, scope : this } } }, { baseCls : 'x-plain-panel', id : 'update-pubmed-region', html : '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' + e.id + ',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></a>', hidden : true } ] }); return pubmedRegion; },
html : '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' +
html : '<span style="cursor:pointer" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' +
getPubMedForm : function(e) { var pubmedRegion = new Ext.Panel({ baseCls : 'x-plain-panel', disabledClass : 'disabled-plain', id : 'pubmed-region', width : 150, layout : 'table', layoutConfig : { columns : 2 }, defaults : { disabled : !this.editable, disabledClass : 'disabled-plain', fieldClass : 'x-bare-field' }, items : [{ xtype : 'numberfield', allowDecimals : false, minLength : 7, maxLength : 9, allowNegative : false, emptyText : this.isAdmin || this.isUser ? 'Enter pubmed id' : 'Not Available', width : 100, id : 'pubmed-id-field', enableKeyEvents : true, listeners : { 'keyup' : { fn : function(e) { if (Ext.getCmp('pubmed-id-field').isDirty() && Ext.getCmp('pubmed-id-field').isValid()) { // show save // button Ext.getCmp('update-pubmed-region').show(); } else { Ext.getCmp('update-pubmed-region').hide(); } }, scope : this } } }, { baseCls : 'x-plain-panel', id : 'update-pubmed-region', html : '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' + e.id + ',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></a>', hidden : true } ] }); return pubmedRegion; },
',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></a>',
',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></span>',
getPubMedForm : function(e) { var pubmedRegion = new Ext.Panel({ baseCls : 'x-plain-panel', disabledClass : 'disabled-plain', id : 'pubmed-region', width : 150, layout : 'table', layoutConfig : { columns : 2 }, defaults : { disabled : !this.editable, disabledClass : 'disabled-plain', fieldClass : 'x-bare-field' }, items : [{ xtype : 'numberfield', allowDecimals : false, minLength : 7, maxLength : 9, allowNegative : false, emptyText : this.isAdmin || this.isUser ? 'Enter pubmed id' : 'Not Available', width : 100, id : 'pubmed-id-field', enableKeyEvents : true, listeners : { 'keyup' : { fn : function(e) { if (Ext.getCmp('pubmed-id-field').isDirty() && Ext.getCmp('pubmed-id-field').isValid()) { // show save // button Ext.getCmp('update-pubmed-region').show(); } else { Ext.getCmp('update-pubmed-region').hide(); } }, scope : this } } }, { baseCls : 'x-plain-panel', id : 'update-pubmed-region', html : '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').savePubMed(' + e.id + ',[\'shortname\',\'name\',\'description\'])" ><img src="/Gemma/images/icons/database_save.png" title="Click to save changes" alt="Click to save changes"/></a>', hidden : true } ] }); return pubmedRegion; },
var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http: + e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp';
var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http: e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp';
getPubMedHtml : function(e) { var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pubmed&cmd=Retrieve&dopt=AbstractPlus&list_uids=' + e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp'; if (this.editable) { // Add the 'delete' button. pubmedUrl = pubmedUrl + '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').removePubMed()">' + '<img src="/Gemma/images/icons/cross.png" ext:qtip="Remove publication" /></a>&nbsp;'; } var pubmedRegion = { id : 'pubmed-region', xtype : 'panel', baseCls : 'x-plain-panel', html : pubmedUrl, width : 380 }; return pubmedRegion; },
pubmedUrl = pubmedUrl + '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').removePubMed()">' +
pubmedUrl = pubmedUrl + '<span style="cursor:pointer" onClick="Ext.getCmp(\'ee-details-panel\').removePubMed()">' +
getPubMedHtml : function(e) { var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pubmed&cmd=Retrieve&dopt=AbstractPlus&list_uids=' + e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp'; if (this.editable) { // Add the 'delete' button. pubmedUrl = pubmedUrl + '<a href="#" onClick="Ext.getCmp(\'ee-details-panel\').removePubMed()">' + '<img src="/Gemma/images/icons/cross.png" ext:qtip="Remove publication" /></a>&nbsp;'; } var pubmedRegion = { id : 'pubmed-region', xtype : 'panel', baseCls : 'x-plain-panel', html : pubmedUrl, width : 380 }; return pubmedRegion; },
var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http: e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp';
var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http: + e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp';
getPubMedHtml : function(e) { var pubmedUrl = e.primaryCitation + '&nbsp; <a target="_blank" ext:qtip="Go to PubMed (in new window)"' + ' href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pubmed&cmd=Retrieve&dopt=AbstractPlus&list_uids=' + e.pubmedId + '&query_hl=2&itool=pubmed_docsum"><img src="/Gemma/images/pubmed.gif" ealt="PubMed" /></a>&nbsp;&nbsp'; if (this.editable) { // Add the 'delete' button. pubmedUrl = pubmedUrl + '<span style="cursor:pointer" onClick="Ext.getCmp(\'ee-details-panel\').removePubMed()">' + '<img src="/Gemma/images/icons/cross.png" ext:qtip="Remove publication" /></a>&nbsp;'; } var pubmedRegion = { id : 'pubmed-region', xtype : 'panel', baseCls : 'x-plain-panel', html : pubmedUrl, width : 380 }; return pubmedRegion; },
minlength: jQuery.format(' ' + $.i18n._('content minchars'))
minlength: $.format(' ' + $.i18n._('content minchars'))
getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: jQuery.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: jQuery.format(' ' + $.i18n._('title minchars')) } }; }
minlength: jQuery.format(' ' + $.i18n._('title minchars'))
minlength: $.format(' ' + $.i18n._('title minchars'))
getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: jQuery.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: jQuery.format(' ' + $.i18n._('title minchars')) } }; }
minlength: $.format(' ' + $.i18n._('content minchars'))
minlength: $.i18n._('content minchars').replace('{0}', 10)
getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: $.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: $.format(' ' + $.i18n._('title minchars')) } }; }
minlength: $.format(' ' + $.i18n._('title minchars'))
minlength: $.i18n._('title minchars').replace('{0}', 10)
getQuestionFormMessages: function(){ return { tags: { required: " " + $.i18n._('tags cannot be empty'), maxlength: " " + $.i18n._('tablimits info') }, text: { required: " " + $.i18n._('content cannot be empty'), minlength: $.format(' ' + $.i18n._('content minchars')) }, title: { required: " " + $.i18n._('please enter title'), minlength: $.format(' ' + $.i18n._('title minchars')) } }; }
if (onSuccessFn) onSuccessFn(r.getResult().Item);
if (onSuccessFn) onSuccessFn(r.Item);
getRandomItemFromSet: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRandomItemFromSet', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Item); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Key);
if (onSuccessFn) onSuccessFn(r.Key);
getRandomKey: function(onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRandomKey', { }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Key); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getRangeFromList: function(id, startingFrom, endingAt, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeFromList', { Id: id || null, StartingFrom: startingFrom || null, EndingAt: endingAt || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getRangeFromSortedList: function(id, startingFrom, endingAt, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeFromSortedList', { Id: id || null, StartingFrom: startingFrom || null, EndingAt: endingAt || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getRangeFromSortedSet: function(id, fromRank, toRank, sortDescending, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeFromSortedSet', { Id: id || null, FromRank: fromRank || null, ToRank: toRank || null, SortDescending: sortDescending || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getRangeFromSortedSetByHighestScore: function(id, fromScore, toScore, skip, take, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeFromSortedSetByHighestScore', { Id: id || null, FromScore: fromScore || null, ToScore: toScore || null, Skip: skip || '0', Take: take || '0' }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getRangeFromSortedSetByLowestScore: function(id, fromScore, toScore, skip, take, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeFromSortedSetByLowestScore', { Id: id || null, FromScore: fromScore || null, ToScore: toScore || null, Skip: skip || '0', Take: take || '0' }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores));
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.ItemsWithScores));
getRangeWithScoresFromSortedSet: function(id, fromRank, toRank, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeWithScoresFromSortedSet', { Id: id || null, FromRank: fromRank || null, ToRank: toRank || null }, function(r) { if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores)); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores));
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.ItemsWithScores));
getRangeWithScoresFromSortedSetByHighestScore: function(id, fromScore, toScore, skip, take, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeWithScoresFromSortedSetByHighestScore', { Id: id || null, FromScore: fromScore || null, ToScore: toScore || null, Skip: skip || '0', Take: take || '0' }, function(r) { if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores)); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores));
if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.ItemsWithScores));
getRangeWithScoresFromSortedSetByLowestScore: function(id, fromScore, toScore, skip, take, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetRangeWithScoresFromSortedSetByLowestScore', { Id: id || null, FromScore: fromScore || null, ToScore: toScore || null, Skip: skip || '0', Take: take || '0' }, function(r) { if (onSuccessFn) onSuccessFn(RedisClient.convertItemWithScoresToMap(r.getResult().ItemsWithScores)); }, onErrorFn || RedisClient.errorFn); },
i;
i = 0;
getRow: function(tr, record) { var data = {}, grid = this.grid, store = grid.store, row = grid.row, rhc = grid.row.useHeaders() ? this.getByName(row.options.headerColumn) : null, domInserts = [], i; this.columns.each(function(column, index) { if (!column.isHidden() && column != rhc) { if (column.options.renderer && column.options.renderer.domInsert) { domInserts.push({column: column, index: i}); } else { var renderer = column.options.renderer, formatter = renderer.options.formatter, text = ''; if (renderer.options.textTemplate) { text = store.fillTemplate(null, renderer.options.textTemplate, renderer.columnsNeeded); } else { text = record.data.get(column.name); } if (formatter) { text = formatter.format(text); } data['col'+index] = text; } i++; } }); tr.set('html', this.rowTemplate.substitute(data)); domInserts.each(function(obj) { tr.childNodes[obj.index].adopt(obj.column.getHTML()); }); },
if (this.grid.model.getPosition() === 0) { var rowWidth = this.getRowHeaderWidth(); th.setStyle("width", rowWidth); }
getRowHeader : function (list) { var th = this.getRowHeaderCell(); if (this.grid.model.getPosition() === 0) { var rowWidth = this.getRowHeaderWidth(); th.setStyle("width", rowWidth); } th.store('jxCellData', { rowHeader: true, row: this.grid.model.getPosition() }); list.add(th); },
var text = model.get(this.options.headerField); var ht = this.options.templates.header; var el = new Element(ht.tag, { 'class' : 'jxGridCellContent', 'html' : text }).inject(th); if ($defined(ht.cssClass)) { if (Jx.type(ht.cssClass) === 'function') { el.addClass(ht.cssClass.run(text)); } else { el.addClass(ht.cssClass); } }
var col = this.grid.columns.getByName(this.options.headerColumn); var el = col.getHTML(); el.inject(th); th.store('jxCellData',{ row: model.getPosition(), rowHeader: true });
getRowHeaderCell : function () { //get and set text for element var model = this.grid.getModel(); var th = new Element('td', { 'class' : 'jxGridRowHead' }); var text = model.get(this.options.headerField); var ht = this.options.templates.header; var el = new Element(ht.tag, { 'class' : 'jxGridCellContent', 'html' : text }).inject(th); if ($defined(ht.cssClass)) { if (Jx.type(ht.cssClass) === 'function') { el.addClass(ht.cssClass.run(text)); } else { el.addClass(ht.cssClass); } } return th; },
var col = this.grid.columns.getByField(this.options.headerField); return col.getWidth(true, true);
var col = this.grid.columns.getByName(this.options.headerColumn); if (!$defined(col.getWidth())) { col.calculateWidth(true); } return col.getWidth();
getRowHeaderWidth : function () { //this can be drawn from the column for the //header field var col = this.grid.columns.getByField(this.options.headerField); return col.getWidth(true, true); },
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) {
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared, canEdit) {
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : ''; var elid = Ext.id(); var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>'; return result;};
var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>';
var icon = ''; if (canEdit) { icon = isPublic ? '<img src="/Gemma/images/icons/world_edit.png" ext:qtip="Public; click to edit permissions" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock_edit.png" ext:qtip="Private; click to edit permissions" ext:qtip="Private" alt="private"/>'; } else { icon = isPublic ? '<img src="/Gemma/images/icons/world.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>'; }
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : ''; var elid = Ext.id(); var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>'; return result;};
var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>';
var dialog = canEdit ? 'style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');"' : ''; var result = '<span ' + dialog + ' id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>';
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : ''; var elid = Ext.id(); var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>'; return result;};
? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>';
? '<img src="/Gemma/images/icons/lock_open2.png" ext:qtip="Public" ext:qtip="Public" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" ext:qtip="Private" ext:qtip="Private" alt="private"/>';
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' : ''; var elid = Ext.id(); var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>'; return result;};
var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' : '';
var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" ext:qtip="Shared" alt="shared"/>' : '';
Gemma.SecurityManager.getSecurityLink = function(clazz, id, isPublic, isShared) { var icon = isPublic ? '<img src="/Gemma/images/icons/lock_open2.png" alt="public"/>' : '<img src="/Gemma/images/icons/lock.png" alt="public"/>'; var sharedIcon = isShared ? '<img src="/Gemma/images/icons/group.png" alt="shared"/>' : ''; var elid = Ext.id(); var result = '<span style="cursor:pointer" onClick="return Gemma.SecurityManager.managePermissions(\'' + elid + '\', \'' + clazz + '\',\'' + id + '\');" id="' + elid + '" >' + icon + '&nbsp;' + sharedIcon + '</span>'; return result;};
return Gemma.SecurityManager.getSecurityLink(clazz, id, isPublic, isShared);
var canEdit = securityInfo.currentUserCanwrite; return Gemma.SecurityManager.getSecurityLink(clazz, id, isPublic, isShared, canEdit);
Gemma.SecurityManager.getSecurityUrl = function(clazz, id) { // FIXME: make method wait for callback method to return ends prematurly // return no link at all. SecurityController.getSecurityInfo({ classDelegatingFor : clazz, id : id }, { callback : function(securityInfo) { var isPublic = securityInfo.publiclyReadable; var isShared = securityInfo.shared; return Gemma.SecurityManager.getSecurityLink(clazz, id, isPublic, isShared); }, errorHandler : function(data) { alert("There was an error getting your group information: " + data); } });};
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery);jQuery.url=function(){var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function(){str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||""}uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2}});return uri};var key=function(key){if(!parsed.length){setUp()}if(key=="base"){if(parsed.port!==null&&parsed.port!==""){return parsed.protocol+":
jQuery.url=function(){var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function(){str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||""}uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2}});return uri};var key=function(key){if(!parsed.length){setUp()}if(key=="base"){if(parsed.port!==null&&parsed.port!==""){return parsed.protocol+":
(function($){var ver="2.86";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery);jQuery.url=function(){var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function(){str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||""}uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2}});return uri};var key=function(key){if(!parsed.length){setUp()}if(key=="base"){if(parsed.port!==null&&parsed.port!==""){return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/"}else{return parsed.protocol+"://"+parsed.host+"/"}}return(parsed[key]==="")?null:parsed[key]};var param=function(item){if(!parsed.length){setUp()}return(parsed.queryKey[item]===null)?null:parsed.queryKey[item]};var setUp=function(){parsed=parseUri();getSegments()};var getSegments=function(){var p=parsed.path;segments=[];segments=parsed.path.length==1?{}:(p.charAt(p.length-1)=="/"?p.substring(1,p.length-1):path=p.substring(1)).split("/")};return{setMode:function(mode){strictMode=mode=="strict"?true:false;return this},setUrl:function(newUri){options.url=newUri===undefined?window.location:newUri;setUp();return this},segment:function(pos){if(!parsed.length){setUp()}if(pos===undefined){return segments.length}return(segments[pos]===""||segments[pos]===undefined)?null:segments[pos]},attr:key,param:param}}();
if (this.getStore()) {
if (this.getStore() && this.view) {
getSelected : function() { if (this.getStore()) { var index = this.view.getSelectedIndexes()[0]; return this.getStore().getAt(index); } },
if (onSuccessFn) onSuccessFn(r.getResult().Count);
if (onSuccessFn) onSuccessFn(r.Count);
getSetCount: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetSetCount', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Count); }, onErrorFn || RedisClient.errorFn); },
return this.service.getInteger('hudson.size');
return this.service.getInteger('extensions.hudson.buildmonitor.size');
getSize: function() { return this.service.getInteger('hudson.size'); },
if (onSuccessFn) onSuccessFn(r.getResult().Values);
if (onSuccessFn) onSuccessFn(r.Values);
getSortedEntryValues: function(key, startingFrom, endingAt, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetSortedEntryValues', { Key: key || null, StartingFrom: startingFrom || null, EndingAt: endingAt || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Values); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Count);
if (onSuccessFn) onSuccessFn(r.Count);
getSortedSetCount: function(id, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetSortedSetCount', { Id: id || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Count); }, onErrorFn || RedisClient.errorFn); },
return this.service.getBoolean('hudson.sound');
return this.service.getBoolean('extensions.hudson.buildmonitor.sound');
getSound: function() { return this.service.getBoolean('hudson.sound'); },
if (onSuccessFn) onSuccessFn(r.getResult().Value);
if (onSuccessFn) onSuccessFn(r.Value);
getSubstring: function(key, fromIndex, toIndex, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetSubstring', { Key: key || null, FromIndex: fromIndex || null, ToIndex: toIndex || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Value); }, onErrorFn || RedisClient.errorFn); },
return this.service.getString('hudson.successcolor');
return this.service.getString('extensions.hudson.buildmonitor.successcolor');
getSuccessColor: function() { return this.service.getString('hudson.successcolor'); },
if (onSuccessFn) onSuccessFn(r.getResult().TimeRemaining);
if (onSuccessFn) onSuccessFn(r.TimeRemaining);
getTimeToLive: function(key, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetTimeToLive', { Key: key || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().TimeRemaining); }, onErrorFn || RedisClient.errorFn); },
return document.title.replace(/ - Wikipedia.+/, ''); }
var siteSpec = citethis.getSiteSpecific('getTitle'); if ( siteSpec ) return citethis.formatTitle(siteSpec); if ( document.title == "Mozilla Firefox" ) return "Website Title"; return citethis.formatTitle(document.title.replace(/ - Mozilla Firefox$/i, '')); },
getTitle: function () { return document.title.replace(/ - Wikipedia.+/, ''); }
} if(_sgffx.tosList.indexOf('fax') !== -1) { _sgffx.setXulObjectVisibility('showfaxmenuitem', 1); _sgffx.setXulObjectVisibility('sendfaxpdfmenuitem', 1); } if(_sgffx.tosList.indexOf('text') !== -1) { _sgffx.setXulObjectVisibility('showsmsformmenuitem', 1);
getTosList: function() { this.log("*** getTosList *** BEGIN ***"); if (!this.isLoggedIn) { this.log("*** getTosList *** USER NOT LOGGED IN ***"); return; } var params = { }; var result = function(ourParsedResponse, aXML){ if (ourParsedResponse.StatusCode && ourParsedResponse.StatusCode == 200) { if(ourParsedResponse.TosList) { _sgffx.tosList = ourParsedResponse.TosList; } } else { _sgffx.log("getTosList failed toSTRING: "+ aXML.toString()); } }; try { this._rpcCall("samurai.TosListGet", params, result); } catch(e) { this.log('Exception in xmlrpc-request: ' + e); this.log('Request sent: ' + request); } this.log("*** getTosList *** END ***"); },
if (onSuccessFn) onSuccessFn(r.getResult().Items);
if (onSuccessFn) onSuccessFn(r.Items);
getUnionFromSets: function(setIds, onSuccessFn, onErrorFn) { this.gateway.postToService('GetUnionFromSets', { SetIds: setIds || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Items); }, onErrorFn || RedisClient.errorFn); },
SecurityController.getUsersGeneGroups = function(p0, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'getUsersGeneGroups', p0, callback);
GeneSetController.getUsersGeneGroups = function(p0, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'getUsersGeneGroups', p0, callback);
SecurityController.getUsersGeneGroups = function(p0, callback) { dwr.engine._execute(SecurityController._path, 'SecurityController', 'getUsersGeneGroups', p0, callback);}
GeneSetController.getUsersGeneGroups = function(p0, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'getUsersGeneGroups', p0, callback);
GeneSetController.getUsersGeneGroups = function(p0, p1, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'getUsersGeneGroups', p0, p1, callback);
GeneSetController.getUsersGeneGroups = function(p0, callback) { dwr.engine._execute(GeneSetController._path, 'GeneSetController', 'getUsersGeneGroups', p0, callback);}
if (onSuccessFn) onSuccessFn(r.getResult().Value);
if (onSuccessFn) onSuccessFn(r.Value);
getValue: function(key, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetValue', { Key: key || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Value); }, onErrorFn || RedisClient.errorFn); },
var ret = this.field.options[index].get("value"); if (!$defined(ret)) { ret = this.field.options[index].get("text");
if (index > -1) { var ret = this.field.options[index].get("value"); if (!$defined(ret)) { ret = this.field.options[index].get("text"); } return ret;
getValue: function () { var index = this.field.selectedIndex; //check for a set "value" attribute. If not there return the text var ret = this.field.options[index].get("value"); if (!$defined(ret)) { ret = this.field.options[index].get("text"); } return ret; }
return ret; }
},
getValue: function () { var index = this.field.selectedIndex; //check for a set "value" attribute. If not there return the text var ret = this.field.options[index].get("value"); if (!$defined(ret)) { ret = this.field.options[index].get("text"); } return ret; }
if (onSuccessFn) onSuccessFn(r.getResult().Value);
if (onSuccessFn) onSuccessFn(r.Value);
getValueFromHash: function(id, key, onSuccessFn, onErrorFn) { this.gateway.getFromService('GetValueFromHash', { Id: id || null, Key: key || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Value); }, onErrorFn || RedisClient.errorFn); },
if ($defined(asQueryString)) {
if ($defined(asQueryString) && asQueryString) {
getValues : function (asQueryString) { var queryString = this.domObj.toQueryString(); if ($defined(asQueryString)) { return queryString; } else { return queryString.parseQueryString(); } },
if (onSuccessFn) onSuccessFn(r.getResult().Values);
if (onSuccessFn) onSuccessFn(r.Values);
getValues: function(keys, onSuccessFn, onErrorFn) { this.gateway.postToService('GetValues', { Keys: keys || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Values); }, onErrorFn || RedisClient.errorFn); },
if (onSuccessFn) onSuccessFn(r.getResult().Values);
if (onSuccessFn) onSuccessFn(r.Values);
getValuesFromHash: function(id, keys, onSuccessFn, onErrorFn) { this.gateway.postToService('GetValuesFromHash', { Id: id || null, Keys: keys || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Values); }, onErrorFn || RedisClient.errorFn); },
this[variableName] = defaultValue;
localSettings[variableName] = defaultValue;
function getVariableFromLocalStorage(variableName,defaultValue) { this[variableName] = defaultValue; var onResponse = function (response) { if (response != null) { this[variableName] = response; console.log(variableName + ' is set to: ' + response); } else { console.log(variableName + ' not found in localStorage! ' + response); } } chrome.extension.sendRequest({'action': 'getFromLocalStorage', 'variableName': variableName}, onResponse) };
this[variableName] = response; console.log(variableName + ' is set to: ' + response);
localSettings[variableName] = response; console.log('localSettings.' + variableName + ' is set to: ' + response);
function getVariableFromLocalStorage(variableName,defaultValue) { this[variableName] = defaultValue; var onResponse = function (response) { if (response != null) { this[variableName] = response; console.log(variableName + ' is set to: ' + response); } else { console.log(variableName + ' not found in localStorage! ' + response); } } chrome.extension.sendRequest({'action': 'getFromLocalStorage', 'variableName': variableName}, onResponse) };
console.log(variableName + ' not found in localStorage! ' + response); }
console.log('localSettings.' + variableName + ' not found in localStorage! ' + response); }
function getVariableFromLocalStorage(variableName,defaultValue) { this[variableName] = defaultValue; var onResponse = function (response) { if (response != null) { this[variableName] = response; console.log(variableName + ' is set to: ' + response); } else { console.log(variableName + ' not found in localStorage! ' + response); } } chrome.extension.sendRequest({'action': 'getFromLocalStorage', 'variableName': variableName}, onResponse) };
if (org_hudsonci_buildMonitorManager.getPreferences().getOpenPage() == 'newtab') {
if (org_hudsonci_buildMonitorManager.getPreferences().getOpenPage() === 'newtab') {
org_hudsonci.goTo = function(url) { if (org_hudsonci_buildMonitorManager.getPreferences().getOpenPage() == 'newtab') { getBrowser().addTab(url); } else { getBrowser().loadURI(url); }};
function handleFailure(data, e) { Ext.DomHelper.overwrite("messages", { tag : 'img', src : '/Gemma/images/icons/warning.png' }); Ext.DomHelper.append("messages", { tag : 'span', html : "&nbsp;There was an error while loading data:<br/>" + data });
function handleFailure(data) {
function handleFailure(data, e) { Ext.DomHelper.overwrite("messages", { tag : 'img', src : '/Gemma/images/icons/warning.png' }); Ext.DomHelper.append("messages", { tag : 'span', html : "&nbsp;There was an error while loading data:<br/>" + data }); uploadButton.enable();};
Ext.DomHelper.overwrite("messages", { tag : 'img', src : '/Gemma/images/icons/warning.png' }); Ext.DomHelper.append("messages", { tag : 'span', html : data });
function handleFailure(data) { // Ext.DomHelper.overwrite("messages", { // tag : 'img', // src : '/Gemma/images/icons/warning.png' // }); // Ext.DomHelper.append("messages", { // tag : 'span', // html : "&nbsp;There was an error while loading data:<br/>" + data // }); uploadButton.enable();};
var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { w.hide('upload-button'); w.destroy();
p.on('done', function(payload) {
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.hide('upload-button'); w.destroy();
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.hide(); w.destroy();
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.show('upload-button');
p.show('upload-button');
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
errorHandler : handleFailure
errorHandler : handleFailure, callback : function(){ document.location.reload(true); Ext.DomHelper.overwrite("messages", "Successfully loaded"); }
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWindow({ taskId : taskId, errorHandler : handleFailure }); p.show('upload-button'); } catch (e) { handleFailure(data, e); return; }};
var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { p.destroy(); document.location.reload(true); Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset();
var p = new Gemma.ProgressWindow({ taskId : taskId, errorHandler : handleFailure
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset(); }); p.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
p.startProgress();
function handleLoadSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { p.destroy(); document.location.reload(true); // user will get a warning, but that's okay. Ext.DomHelper.overwrite("messages", "Successfully loaded."); }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset(); }); p.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
to_target = interestingTags; from_target = ignoredTags;
var to_target = interestingTags; var from_target = ignoredTags; var to_tag_container;
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); to_target = interestingTags; from_target = ignoredTags; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } }
new_tag = $('<span></span>');
var new_tag = $('<span></span>');
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); to_target = interestingTags; from_target = ignoredTags; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } }
tag_link = $('<a></a>');
var tag_link = $('<a></a>');
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); to_target = interestingTags; from_target = ignoredTags; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } }
del_link = $('<img></img>');
var del_link = $('<img></img>');
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); to_target = interestingTags; from_target = ignoredTags; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } }
}
};
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); to_target = interestingTags; from_target = ignoredTags; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'content/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } }
del_link.attr('src', scriptUrl + 'media/images/close-small-dark.png');
del_link.attr('src', mediaUrl('/media/images/close-small-dark.png'));
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); var to_target = interestingTags; var from_target = ignoredTags; var to_tag_container; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ var new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); var tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); var del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', scriptUrl + 'media/images/close-small-dark.png'); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } };
tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname);
var tag_url = scriptUrl + $.i18n._('questions/') + '?tags=' + tagname; tag_link.attr('href', tag_url);
var handlePickedTag = function(obj,reason){ var tagname = $.trim($(obj).prev().attr('value')); var to_target = interestingTags; var from_target = ignoredTags; var to_tag_container; if (reason == 'bad'){ to_target = ignoredTags; from_target = interestingTags; to_tag_container = $('div .tags.ignored'); } else if (reason != 'good'){ return; } else { to_tag_container = $('div .tags.interesting'); } if (tagname in from_target){ unpickTag(from_target,tagname,reason,false); } if (!(tagname in to_target)){ //send ajax request to pick this tag sendAjax(tagname,reason,'add',function(){ var new_tag = $('<span></span>'); new_tag.addClass('deletable-tag'); var tag_link = $('<a></a>'); tag_link.attr('rel','tag'); tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname); tag_link.html(tagname); var del_link = $('<img></img>'); del_link.addClass('delete-icon'); del_link.attr('src', mediaUrl('/media/images/close-small-dark.png')); setupTagDeleteEvents(del_link, to_target, tagname, reason, true); new_tag.append(tag_link); new_tag.append(del_link); to_tag_container.append(new_tag); to_target[tagname] = new_tag; }); } };
var node = layerTree.getSelectionModel().getSelectedNode(); if (node && node.layer) { var layer = node.layer; var store = node.layerStore; var record = store.getAt(store.findBy(function(record){ return record.get("layer") === layer; })); var backupParams = Ext.apply({}, record.get("layer").params); var prop = new Ext.Window({ title: "Properties: " + record.get("layer").name, width: 280, autoHeight: true, items: [{ xtype: "gx_wmslayerpanel", autoHeight: true, layerRecord: record, defaults: { autoHeight: true, hideMode: "offsets"
var node = layerTree.getSelectionModel().getSelectedNode(); if(node && node.layer) { var map = this.mapPanel.map; var extent = node.layer.restrictedExtent || map.maxExtent; map.zoomToExtent(extent, true);
handler: function() { var node = layerTree.getSelectionModel().getSelectedNode(); if (node && node.layer) { var layer = node.layer; var store = node.layerStore; var record = store.getAt(store.findBy(function(record){ return record.get("layer") === layer; })); var backupParams = Ext.apply({}, record.get("layer").params); var prop = new Ext.Window({ title: "Properties: " + record.get("layer").name, width: 280, autoHeight: true, items: [{ xtype: "gx_wmslayerpanel", autoHeight: true, layerRecord: record, defaults: { autoHeight: true, hideMode: "offsets" } }] }); // disable the "About" tab's fields to indicate that they // are read-only //TODO WMSLayerPanel should be easier to configure for this prop.items.get(0).items.get(0).cascade(function(i) { i instanceof Ext.form.Field && i.setDisabled(true); }); var stylesPanel = this.createStylesPanel({ layerRecord: record, applySelectedStyle: true }); stylesPanel.setTitle("Styles"); // add styles tab prop.items.get(0).add(stylesPanel) prop.show(); } },
}] }); prop.items.get(0).items.get(0).cascade(function(i) { i instanceof Ext.form.Field && i.setDisabled(true); }); var stylesPanel = this.createStylesPanel({ layerRecord: record, applySelectedStyle: true }); stylesPanel.setTitle("Styles"); prop.items.get(0).add(stylesPanel) prop.show(); } },
},
handler: function() { var node = layerTree.getSelectionModel().getSelectedNode(); if (node && node.layer) { var layer = node.layer; var store = node.layerStore; var record = store.getAt(store.findBy(function(record){ return record.get("layer") === layer; })); var backupParams = Ext.apply({}, record.get("layer").params); var prop = new Ext.Window({ title: "Properties: " + record.get("layer").name, width: 280, autoHeight: true, items: [{ xtype: "gx_wmslayerpanel", autoHeight: true, layerRecord: record, defaults: { autoHeight: true, hideMode: "offsets" } }] }); // disable the "About" tab's fields to indicate that they // are read-only //TODO WMSLayerPanel should be easier to configure for this prop.items.get(0).items.get(0).cascade(function(i) { i instanceof Ext.form.Field && i.setDisabled(true); }); var stylesPanel = this.createStylesPanel({ layerRecord: record, applySelectedStyle: true }); stylesPanel.setTitle("Styles"); // add styles tab prop.items.get(0).add(stylesPanel) prop.show(); } },
handler : function(){ tabs.items.each(function(item){ if(item.closable && item != ctxItem){ tabs.remove(item); } }); }
handler: function(){ win.close(); }
handler : function(){ tabs.items.each(function(item){ if(item.closable && item != ctxItem){ tabs.remove(item); } }); }
newSourceWindow.show(); }
var node = layerTree.getSelectionModel().getSelectedNode(); if(node && node.layer) { this.map.zoomToExtent(node.layer.restrictedExtent); } },
handler: function() { newSourceWindow.show(); }
prop.close(); }
newSourceWindow.show(); }
handler: function() { prop.close(); }
tvheadend.channels.rejectChanges(); },
new tvheadend.help('Channels', 'config_channels.html'); }
handler: function() { tvheadend.channels.rejectChanges(); },
var feedback = $.i18n._('can write') + ' ' + (maxCommentLength - length) + ' ' + $.i18n._('characters');
var feedback = $.i18n._('{0} characters left') .replace('{0}', maxCommentLength - length);
var handler = function(){ var textarea = $(this); var length = textarea.val() ? textarea.val().length : 0; var length1 = maxCommentLength - 100; if (length1 < 0){ length1 = Math.round(0.7*maxCommentLength); } var length2 = maxCommentLength - 30; if (length2 < 0){ length2 = Math.round(0.9*maxCommentLength); } var color = 'maroon'; if (length === 0){ var feedback = $.i18n._('title minchars').replace('{0}', 10); } else if (length < 10){ var feedback = $.i18n._('enter more characters').replace('{0}', 10 - length); } else { color = length > length2 ? "#f00" : length > length1 ? "#f60" : "#999"; var feedback = $.i18n._('can write') + ' ' + (maxCommentLength - length) + ' ' + $.i18n._('characters'); } counter.html(feedback).css('color', color); };
if ($defined(data.data)) { response.data = data.data;
if ($defined(data.success) && data.success) { if ($defined(data.data)) { response.data = data.data; } if ($defined(data.meta)) { response.meta = data.meta; } response.code = Jx.Store.Response.SUCCESS; } else { response.code = Jx.Store.Response.FAILURE; response.error = $defined(data.error) ? data.error : null;
handleResponse: function (response) { var req = response.request; var str = req.xhr.responseText; var data = this.parser.parse(str); if ($defined(data)) { if ($defined(data.data)) { response.data = data.data; } if ($defined(data.meta)) { response.meta = data.meta; } response.code = Jx.Store.Response.SUCCESS; } else { response.code = Jx.Store.Response.FAILURE; } this.fireEvent('dataLoaded', response); },
if ($defined(data.meta)) { response.meta = data.meta; } response.code = Jx.Store.Response.SUCCESS;
handleResponse: function (response) { var req = response.request; var str = req.xhr.responseText; var data = this.parser.parse(str); if ($defined(data)) { if ($defined(data.data)) { response.data = data.data; } if ($defined(data.meta)) { response.meta = data.meta; } response.code = Jx.Store.Response.SUCCESS; } else { response.code = Jx.Store.Response.FAILURE; } this.fireEvent('dataLoaded', response); },
this.waiting = true; this.stopProgress(); this.startProgress();
handleResponseFailure : function(data, e) { /* * keep going. Hopefully just a temporary network lapse. */ this.progressBar.updateText("Network error, continuing."); this.waiting = true; this.stopProgress(); this.startProgress(); },
this.progressBar.updateText("Network error, continuing."); this.waiting = true;
handleResponseFailure : function(data, e) { /* * keep going. Hopefully just a temporary network lapse. */ },
var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset();
var p = new Gemma.ProgressWindow({ taskId : taskId, callback : function(p) { window.location = p }, errorHandler : handleFailure
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { // this.onDoneLoading(payload); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset(); }); p.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
p.startProgress();
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { // this.onDoneLoading(payload); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset(); }); p.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
handleFailure(data, e);
handleFailure(e);
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); p.on('done', function(payload) { // this.onDoneLoading(payload); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { p.destroy(); handleFailure(payload); }); p.on('cancel', function() { p.destroy(); reset(); }); p.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] });
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.hide('upload-button'); w.destroy();
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.hide(); w.destroy();
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
w.show('upload-button');
p.show('upload-button');
function handleSuccess(taskId) { try { Ext.DomHelper.overwrite("messages", ""); var p = new Gemma.ProgressWidget({ taskId : taskId }); var w = new Ext.Window({ modal : true, closable : false, width : 500, items : [p], buttons : [{ id : 'cancel-button', handler : function() { p.cancelJob(); }, text : 'Cancel' }] }); p.on('done', function(payload) { // this.onDoneLoading(payload); w.hide('upload-button'); w.destroy(); p.destroy(); window.location = payload; }.createDelegate(this)); p.on('fail', function(payload) { w.hide('upload-button'); w.destroy(); p.destroy(); handleFailure(payload); }); p.on('cancel', function() { w.hide(); w.destroy(); p.destroy(); reset(); }); w.show('upload-button'); p.startProgress(); } catch (e) { handleFailure(data, e); return; }};
this.fireEvent('done', data);
this.fireEvent('fail', data);
handleWait : function(taskId, showAllMessages) { try { var p = new Gemma.ProgressWindow({ taskId : taskId, callback : function(data) { this.fireEvent('done', data); }.createDelegate(this), errorHandler : function(data) { this.fireEvent('done', data); }.createDelegate(this), showAllMessages : showAllMessages }); if (this.throbberEl !== null) { /* * Doesn't work quite right ... implemented for 'report' update. */ var el = Ext.get(this.throbberEl); var id = Ext.id(); Ext.DomHelper.append(this.throbberEl, '<span id="' + id + '"><img src="/Gemma/images/default/tree/loading.gif"/></span>'); this.on('done', function(data) { Ext.DomHelper.overwrite(id, ""); }); p.start(); } else { p.show(); } } catch (e) { Ext.Msg.alert("Error", e); } },
p.show();
if (this.throbberEl !== null) { var el = Ext.get(this.throbberEl); var id = Ext.id(); Ext.DomHelper.append(this.throbberEl, '<span id="' + id + '"><img src="/Gemma/images/default/tree/loading.gif"/></span>'); this.on('done', function(data) { Ext.DomHelper.overwrite(id, ""); }); p.start(); } else { p.show(); }
handleWait : function(taskId, showAllMessages) { try { var p = new Gemma.ProgressWindow({ taskId : taskId, callback : function(data) { this.fireEvent('done', data); }.createDelegate(this), showAllMessages : showAllMessages }); p.show(); } catch (e) { Ext.Msg.alert("Error", e); } },
c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
if (onSuccessFn) onSuccessFn(r.getResult().Result);
if (onSuccessFn) onSuccessFn(r.Result);
hashContainsEntry: function(id, key, onSuccessFn, onErrorFn) { this.gateway.getFromService('HashContainsEntry', { Id: id || null, Key: key || null }, function(r) { if (onSuccessFn) onSuccessFn(r.getResult().Result); }, onErrorFn || RedisClient.errorFn); },
if (this.index < this.data.length - 1) { return true; } else { return false; } } else { return null;
return this.index < this.data.length - 1;
hasNext : function () { if ($defined(this.data)) { if (this.index < this.data.length - 1) { return true; } else { return false; } } else { return null; } },
return null;
hasNext : function () { if ($defined(this.data)) { if (this.index < this.data.length - 1) { return true; } else { return false; } } else { return null; } },
if (this.index > 0) { return true; } else { return false; } } else { return null;
return this.index > 0;
hasPrevious : function () { if ($defined(this.data)) { if (this.index > 0) { return true; } else { return false; } } else { return null; } },