Hirdetés
- Az eddigieknél részletesebb videón a Samsung harmonikamobilja
- 7000 mAh-s aksit kapott a Motorola Moto G57 Power
- Motorola Edge 70 - többért kevesebbet
- Bemutatkozott a Poco X7 és X7 Pro
- Kezünkben a OnePlus 15 és az Oppo Find X9-ek
- Magisk
- Honor 200 Pro - mobilportré
- Apple Watch Sport - ez is csak egy okosóra
- Légből kapott hírünk van képekkel
- iPhone topik
Új hozzászólás Aktív témák
-
Soak
veterán
válasz
Sk8erPeter
#1039
üzenetére
Nem korábban van, nem tudom, hogy miért dobott hibát, csak azt a részt másoltam be amit te írtál,oda ahova irtad, a komment alá, nem tudom miért szarozik, mindjárt megprobálom újra, mondjuk ha belegondolok a facebookos like beágyazós js-re is szintaktikai hibát dob, holott fut rendesen, most felraktam a CS6-ot, megnézem ezzel is.
Szerk : CS6-nak se tetszik.
Szerk2:
$(document).ready(function()
{
/*
* Common dialogue() function that creates our dialogue qTip.
* We'll use this method to create both our prompt and confirm dialogues
* as they share very similar styles, but with varying content and titles.
*/
function dialogue(content, title) {
/*
* Since the dialogue isn't really a tooltip as such, we'll use a dummy
* out-of-DOM element as our target instead of an actual element like document.body
*/
$('<div />').qtip(
{
content: {
text: content,
title: title
},
position: {
my: 'center', at: 'center', // Center it...
target: $(window) // ... in the window
},
show: {
ready: true, // Show it straight away
modal: {
on: true, // Make it modal (darken the rest of the page)...
blur: false // ... but don't close the tooltip when clicked
}
},
hide: false, // We'll hide it maunally so disable hide events
style: 'ui-tooltip-light ui-tooltip-rounded ui-tooltip-dialogue', // Add a few styles
events: {
// Hide the tooltip when any buttons in the dialogue are clicked
render: function(event, api) {
$('button', api.elements.content).click(api.hide);
},
// Destroy the tooltip once it's hidden as we no longer need it!
hide: function(event, api) { api.destroy(); }
}
});
}
// Our Confirm method
function Confirm(question, callback)
{
// Content will consist of the question and ok/cancel buttons
var message = $('<p />', { text: question }),
ok = $('<button />', {
text: 'Ok',
click: function() { callback(true); }
}),
cancel = $('<button />', {
text: 'Cancel',
click: function() { callback(false); }
});
dialogue( message.add(ok).add(cancel), 'Photofreak' );
}
// Setup the buttons to call our new Alert/Prompt/Confirm methods
$('.event_delete input[name="delete_event"]').click(function() {
Confirm('Are you sure you want to delete this photograph?', function(yes) {
// do something with yes
$.ajax({
url: 'ajax/settings_form.php',
data: 'asd',
success: function(data) {
// .............
}
});
});
return false;
});Így néz ki a kód jelenleg, erre dobja a hibát.
Új hozzászólás Aktív témák
- -ÚJ,2 ÉV GAR- DDR5 GAMER PC: RYZEN 7 8700F/9700X/9800X3D +RX 6600/6700XT +16-64GB DDR5! SZÁMLA!
- Dell Latitude 7430 x360 Ütésálló Érintős Hajtogatós Profi Ultrabook 14" -60% i7-1265U 16/512 IRIS Xe
- HP E24m G4 Monitor FHD IPS webkamerával, Windows Hello-támogatással
- Lenovo ThinkPad T14 Gen 5 Ultra-I7/16GB/512SSD/FHD/garancia!
- Lenovo ThinkPad X1 Carbon 9th i7-1165G7/16GB/512/FHD/Magyar
- Bomba ár! Lenovo ThinkPad T450 - i5-5GEN I 8GB I 240SSD I 14" HD+ I Cam I W10 I Garancia!
- ÁRGARANCIA!Épített KomPhone i5 14400F 32/64GB DDR5 RTX 5060 Ti 8GB GAMER PC termékbeszámítással
- Bomba ár! Lenovo ThinkPad X230 - i7-3GEN I 8GB I 256SSD I 12,5" HD I W10 I Garancia!
- Nvidia Quadro P400/ P600/ P620/ P1000/ T400/ T600/ T1000 - Low profile (LP) + RTX A2000 6/12Gb
- Dell D6000 univerzális dokkoló USB-C/ USB-A, DisplayLink & Dell WD15 (K17A) USB-C + 130-180W töltő
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: Laptopműhely Bt.
Város: Budapest


