Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1509 | Revision 1513 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1509 Revision 1512
Zeile 405... Zeile 405...
405
            ).remove().end().first()
405
            ).remove().end().first()
406
                .progressbar();
406
                .progressbar();
407
            tmpl.find('.start button').slice(
407
            tmpl.find('.start button').slice(
408
                this.options.autoUpload || !isValidated ? 0 : 1
408
                this.options.autoUpload || !isValidated ? 0 : 1
409
            ).remove().end().first()
409
            ).remove().end().first()
410
                .button({
410
                .uibutton({
411
                    text: false,
411
                    text: false,
412
                    icons: {primary: 'ui-icon-circle-arrow-e'}
412
                    icons: {primary: 'ui-icon-circle-arrow-e'}
413
                });
413
                });
414
            tmpl.find('.cancel button').slice(1).remove().end().first()
414
            tmpl.find('.cancel button').slice(1).remove().end().first()
415
                .button({
415
                .uibutton({
416
                    text: false,
416
                    text: false,
417
                    icons: {primary: 'ui-icon-cancel'}
417
                    icons: {primary: 'ui-icon-cancel'}
418
                });
418
                });
419
            tmpl.find('.preview').each(function (index, node) {
419
            tmpl.find('.preview').each(function (index, node) {
420
                that._loadImage(
420
                that._loadImage(
Zeile 452... Zeile 452...
452
            var tmpl = this._renderDownloadTemplate(files);
452
            var tmpl = this._renderDownloadTemplate(files);
453
            if (!(tmpl instanceof $)) {
453
            if (!(tmpl instanceof $)) {
454
                return $();
454
                return $();
455
            }
455
            }
456
            tmpl.css('display', 'none');
456
            tmpl.css('display', 'none');
457
            tmpl.find('.delete button').button({
457
            tmpl.find('.delete button').uibutton({
458
                text: false,
458
                text: false,
459
                icons: {primary: 'ui-icon-trash'}
459
                icons: {primary: 'ui-icon-trash'}
460
            });
460
            });
461
            tmpl.find('a').each(this._enableDragToDesktop);
461
            tmpl.find('a').each(this._enableDragToDesktop);
462
            return tmpl;
462
            return tmpl;
Zeile 536... Zeile 536...
536
                ns = this.options.namespace;
536
                ns = this.options.namespace;
537
            fileUploadButtonBar
537
            fileUploadButtonBar
538
                .addClass('ui-widget-header ui-corner-top');
538
                .addClass('ui-widget-header ui-corner-top');
539
            this.element.find('.fileinput-button').each(function () {
539
            this.element.find('.fileinput-button').each(function () {
540
                var fileInput = $(this).find('input:file').detach();
540
                var fileInput = $(this).find('input:file').detach();
541
                $(this).button({icons: {primary: 'ui-icon-plusthick'}})
541
                $(this).uibutton({icons: {primary: 'ui-icon-plusthick'}})
542
                    .append(fileInput);
542
                    .append(fileInput);
543
            });
543
            });
544
            fileUploadButtonBar.find('.start')
544
            fileUploadButtonBar.find('.start')
545
                .button({icons: {primary: 'ui-icon-circle-arrow-e'}})
545
                .uibutton({icons: {primary: 'ui-icon-circle-arrow-e'}})
546
                .bind('click.' + ns, function (e) {
546
                .bind('click.' + ns, function (e) {
547
                    e.preventDefault();
547
                    e.preventDefault();
548
                    filesList.find('.start button').click();
548
                    filesList.find('.start button').click();
549
                });
549
                });
550
            fileUploadButtonBar.find('.cancel')
550
            fileUploadButtonBar.find('.cancel')
551
                .button({icons: {primary: 'ui-icon-cancel'}})
551
                .uibutton({icons: {primary: 'ui-icon-cancel'}})
552
                .bind('click.' + ns, function (e) {
552
                .bind('click.' + ns, function (e) {
553
                    e.preventDefault();
553
                    e.preventDefault();
554
                    filesList.find('.cancel button').click();
554
                    filesList.find('.cancel button').click();
555
                });
555
                });
556
            fileUploadButtonBar.find('.delete')
556
            fileUploadButtonBar.find('.delete')
557
                .button({icons: {primary: 'ui-icon-trash'}})
557
                .uibutton({icons: {primary: 'ui-icon-trash'}})
558
                .bind('click.' + ns, function (e) {
558
                .bind('click.' + ns, function (e) {
559
                    e.preventDefault();
559
                    e.preventDefault();
560
                    filesList.find('.delete button').click();
560
                    filesList.find('.delete button').click();
561
                });
561
                });
562
        },
562
        },
Zeile 564... Zeile 564...
564
        _destroyFileUploadButtonBar: function () {
564
        _destroyFileUploadButtonBar: function () {
565
            this.element.find('.fileupload-buttonbar')
565
            this.element.find('.fileupload-buttonbar')
566
                .removeClass('ui-widget-header ui-corner-top');
566
                .removeClass('ui-widget-header ui-corner-top');
567
            this.element.find('.fileinput-button').each(function () {
567
            this.element.find('.fileinput-button').each(function () {
568
                var fileInput = $(this).find('input:file').detach();
568
                var fileInput = $(this).find('input:file').detach();
569
                $(this).button('destroy')
569
                $(this).uibutton('destroy')
570
                    .append(fileInput);
570
                    .append(fileInput);
571
            });
571
            });
572
            this.element.find('.fileupload-buttonbar button')
572
            this.element.find('.fileupload-buttonbar button')
573
                .unbind('click.' + this.options.namespace)
573
                .unbind('click.' + this.options.namespace)
574
                .button('destroy');
574
                .uibutton('destroy');
575
        },
575
        },
Zeile 576... Zeile 576...
576
 
576
 
577
        _enableFileInputButton: function () {
577
        _enableFileInputButton: function () {
578
            this.element.find('.fileinput-button input:file:disabled')
578
            this.element.find('.fileinput-button input:file:disabled')
579
                .each(function () {
579
                .each(function () {
580
                    var fileInput = $(this),
580
                    var fileInput = $(this),
581
                        button = fileInput.parent();
581
                        button = fileInput.parent();
582
                    fileInput.detach().prop('disabled', false);
582
                    fileInput.detach().prop('disabled', false);
583
                    button.button('enable').append(fileInput);
583
                    button.uibutton('enable').append(fileInput);
584
                });
584
                });
Zeile 585... Zeile 585...
585
        },
585
        },
586
 
586
 
587
        _disableFileInputButton: function () {
587
        _disableFileInputButton: function () {
588
            this.element.find('.fileinput-button input:file:enabled')
588
            this.element.find('.fileinput-button input:file:enabled')
589
                .each(function () {
589
                .each(function () {
590
                    var fileInput = $(this),
590
                    var fileInput = $(this),
591
                        button = fileInput.parent();
591
                        button = fileInput.parent();
592
                    fileInput.detach().prop('disabled', true);
592
                    fileInput.detach().prop('disabled', true);
593
                    button.button('disable').append(fileInput);
593
                    button.uibutton('disable').append(fileInput);
Zeile 594... Zeile 594...
594
                });
594
                });
595
        },
595
        },
Zeile 634... Zeile 634...
634
        },
634
        },
Zeile 635... Zeile 635...
635
        
635
        
636
        enable: function () {
636
        enable: function () {
637
            $.blueimp.fileupload.prototype.enable.call(this);
637
            $.blueimp.fileupload.prototype.enable.call(this);
638
            this.element.find(':ui-button').not('.fileinput-button')
638
            this.element.find(':ui-button').not('.fileinput-button')
639
                .button('enable');
639
                .uibutton('enable');
640
            this._enableFileInputButton();
640
            this._enableFileInputButton();
Zeile 641... Zeile 641...
641
        },
641
        },
642
        
642
        
643
        disable: function () {
643
        disable: function () {
644
            this.element.find(':ui-button').not('.fileinput-button')
644
            this.element.find(':ui-button').not('.fileinput-button')
645
                .button('disable');
645
                .uibutton('disable');
646
            this._disableFileInputButton();
646
            this._disableFileInputButton();
Zeile 647... Zeile 647...
647
            $.blueimp.fileupload.prototype.disable.call(this);
647
            $.blueimp.fileupload.prototype.disable.call(this);