Custom Query (7259 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (61 - 63 of 7259)

Ticket Resolution Summary Owner Reporter
#8953 patcheswelcome Datepicker: beforeShowDay repeats dates Joel Joel
Description

When using ui datepicker to render 12 inline calendars I have noticed that the beforeShowDay function is duplicating dates ie

29-01-2013 30-01-2013 31-01-2013 01-02-2013 02-02-2013 03-02-2013 28-01-2013 29-01-2013 30-01-2013 31-01-2013 01-02-2013 02-02-2013 03-02-2013 04-02-2013

(see http://stackoverflow.com/questions/14219474/jquery-ui-datepicker-beforeshowday-is-repeating-certain-dates)

the calendars are being updated from a database to show booked days for holiday homes and the above behaviour is causing an issue.

This is the (stripped back) function being called:

function availableDays(date) {

var m = date.getMonth(),

d = date.getDate(), y = date.getFullYear();

m = pad(m + 1); d = pad(d);

var dateId = d + '-' + m + '-' + y;

console.log(dateId) return [false];

}

I am using jquery.1.8.js and jquery-ui-1.9.2.js

#14947 notabug Uncaught TypeError: Cannot read property 'eq' of undefined Johnnii360 Johnnii360
Description

Hi there!

The bug is already there in the actual jQ-UI v1.12.0-rc1 release.

e.widget._getSelectedItem	@	jquery-ui.min.js:11
(anonymous function)	@	jquery-ui.min.js:6
e.widget.refresh	@	jquery-ui.min.js:11
(anonymous function)	@	jquery-ui.min.js:6
(anonymous function)	@	jquery-ui.min.js:6
n.extend.each	@	jquery.min.js:2
n.fn.n.each	@	jquery.min.js:2
e.fn.(anonymous function)	@	jquery-ui.min.js:6
(anonymous function)	@	custom.js:2041
i	@	jquery.min.js:2
j.fireWith	@	jquery.min.js:2
z	@	jquery.min.js:4
(anonymous function)	@	jquery.min.js:4

Here my code for some debugging:

open: function(){
		$.getJSON('ajax/dokumente_dialogs_formitems.php?item=newfile_categories', function(data){
		    var $select = $("#DocumentsFile_Cat");
		    $select.appendTo("#DocumentsFile_Cat");
		    $.each([data], function(i, optgroups) {
			$.each(optgroups, function(groupName, options) {
			    var $optgroup = $("<optgroup>", {label: groupName});
			    $optgroup.appendTo($select);

			    $.each(options, function(j, option) {
				var $option = $("<option>", {text: option.text, value: option.value});
				$option.appendTo($optgroup);
			    });
			});
		    });
		});
		
		// Lade Daten in die Inputs
		$.getJSON('ajax/dokumente_dialogs_formitems.php?item=edit_document&fid='+FileID, function(data){
		    $('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Cat').val(data[0].kid);
		   
		    
		    $('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Name').val(data[0].name);
		    $('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_URL').val(data[0].url);
		    $('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Pfad').val(data[0].pfad);
		    
		    if(data[0].versteckt == 1){
			$('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Versteckt').prop("checked", true);
		    }
		    else{
			$('#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Versteckt').prop("checked", false);
		    } 
		    
		    $("#DocumentsFileEdit #DocumentsFileForm #DocumentsFile_Cat").selectmenu("refresh"); // 12.04.2016: Macht in jQuery UI 1.11.4 noch Probleme.
		});
	    },

(It's in a dialog function)

#6050 invalid Additional null check on _drop JonKragh JonKragh
Description

Hi,

I have an app where droppable items are added dynamically via ajax. My droppable item's html is returned from the server, and then I register them as droppable via jQuery UI once they are added to the DOM.

Sometimes when these items are dropped in Firefox 3.6.9 (especially when dragging upwards and then dropping I get: "inst is null" on line 1736. (the code is in "ui.droppable")

I'm using jQuery UI 1.8, but I tried 1.8.4 and had the same issue.

I added the following check for null "inst!=null &&", under the comment " jhk".

Once I added this, all is well, and drop is working properly.

_drop: function(event,custom) {

		var draggable = custom || $.ui.ddmanager.current;
		if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
        
		var childrenIntersection = false;
		this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() {
			var inst = $.data(this, 'droppable');
			if(
                // jhk - added "inst!=null &&"
                inst!=null &&
				inst.options.greedy
				&& !inst.options.disabled
				&& inst.options.scope == draggable.options.scope
				&& inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element))
				&& $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)
			) { childrenIntersection = true; return false; }
		});

I have not tried other browsers.

Thanks, Jon

Note: See TracQuery for help on using queries.