mirror of
https://github.com/serdarcevher/eksinormallestirici.git
synced 2026-04-26 16:05:49 +03:00
[GH-ISSUE #30] sub-etha dugmesi birden fazla yere ekleniyor #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/eksinormallestirici#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kyzn on GitHub (Mar 2, 2016).
Original GitHub issue: https://github.com/serdarcevher/eksinormallestirici/issues/30
Sub etha dugmesi sadece olay dugmesinin sagindaki menuye degil, ayni zamanda
script.js dosyasindaki
$(".dropdown-menu").prepend("...satiri 5 tanedropdown-menubuluyor, bize sadece ilk ikisi gerekiyor. bu satiri$(".dropdown-menu")[0].prepend("...seklinde guncellemeyi denedim ancak tam olarak calistiramadim. (0 ve 1 indexleri sag ustte sub-etha dugmesinin gorunmesini istedigimiz menu, 0 webde gosteriliyor 1 mobilde, isterseniz chrome'da$(".dropdown-menu")komutuyla inceleyebilirsiniz.sunu da denedim ama tam olarak calismadi (bu zaten sona ekliyor, basa eklemek icin insertBefore komutunu kullanmak gerekiyordu ama onu da tam ayarlayamadim):
@yali4 commented on GitHub (Mar 2, 2016):
$(".dropdown-menu")[0]dediğiniz zaman aldığınız birinci element jQuery wrapper'ının dışına çıktığı için jQuery methodlarını kullanamıyorsunuz.$(".dropdown-menu").eq(0)derseniz birinci element jQuery wrapper'ı ile birlikte gelir.@kyzn commented on GitHub (Mar 2, 2016):
Tesekkurler! Ben de ogrenmis oldum bahaneyle.