Tak, men nu virker det smarte ikke
For at slette, skulle jeg åbenbart tilføje:
<script type="text/javascript">
google.load("jquery", "1");
</script>
Men nu får jeg ikke
- $().toasty({
- message: "Fjerner billedet helt",
- autoHide: 3000
- });
med ind i det.
- <script type="text/javascript" language="javascript">
- // <![CDATA[
- // load jquery here before calling this
- $(document).ready(function() {
-
- // delete the entry once we have confirmed that it should be deleted
- $('.delete').click(function() {
- var parent = $(this).closest('tr');
- $.ajax({
- type: 'get',
- url: '?side=config/adminsider/slideshow/sletfoto', // <- replace this with your url here
- data: 'ajax=1&delete=' + $(this).attr('id'),
- beforeSend: function() {
- parent.animate({'backgroundColor':'#000'},300);
- },
- success: function() {
- parent.fadeOut(300,function() {
-
- $().toasty({
- message: "Fjerner billedet helt",
- autoHide: 3000
-
- });
- parent.remove();
- });
- }
- });
- });
- // confirm that it should be deleted
- $('.delete').confirm({
-
- msg:'Er du sikker? ',
- timeout:3000
- });
-
- });
- // ]]></script>
Indlæg senest redigeret d. 10.04.2014 18:32 af Bruger #17554